Query abt Web Browser

Hi All,
I have created Accordion menu in flash 8. In Accordion change event I changed the image. I embed this swf into aspx page. That is worked well. After that I want to use this in Web Browser control in VB.Net
So I usedWEB BROWSER control in VB.NET.The Prob is the Accordion menu is not worked in VB.NET WEB BROWSER .
How to Solve this prob? If U have any solution let me know.

Thanks in advance

[456 byte] By [Muthunagai] at [2008-1-10]
# 1

Hi Muthunagai,

To embed flash file (.swf) into WinForm, here are two approaches:

1. Use the AxWebBrowser component instead of WebBrowser control.

Right-click the ToolBox -> select 'Choose Items ...' -> Select the COM tab -> Select "Microsoft Web Browser"

There should now be a Microsoft Web Browser control in the toolbox, drag it onto your form and specify .swf file.

Me.AxWebBrowser2.Navigate("E:\VBproject\topic.swf")

Please check this thread for detail.

2. Use the Shockwave Flash Object.

You need to install the latest version of Adobe Macromedia Flash Player (9.0 r28). The component will be located at "%systemroot%\system32\macromed\flash9c.ocx". Then you'd better register manually it like this:

Regsvr32 flash9c.ocx

And then please follow these steps to add Shockwave Flash Object correctly on your form in VB 2005 Express:

1. In Solution Explore, right-click References and choose Add Reference.

In COM tab, add Shockwave Flash (e.g. Flash9c.ocx)

2. Right-click Toolbox -> Click "Choose Items", in COM tab, choose Shockwave Flash Object, then you can see the control in the Toolbox.

3. Drag and drop the Shockwave control on the form, you may get the error message "Failed to import the ActiveX control. Please ensure it is properly registered", ignore it and click OK.

4. Right-click the project in Solution Explorer, choose "Rebuild". When the project rebuild succesfully, you are able to add the Shockwave control on the form this time.

5. Specify .swf file for the Movie property of Shockwave control.

Please check this thread for detail.

Regards,

Martin

MartinXie-MSFT at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...
# 2

Thanks. I solved the Prob. Thanks for Idea.

Muthunagai at 2007-10-3 > top of Msdn Tech,Visual Studio Express Editions,Visual Basic 2005 Express Edition...