Click here to Skip to main content
15,881,516 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all ,

I searched on google on any idea of how to integrate or embedd swf in windows forms.So
can anyone help me please.? Thanks in advance.
Posted

Your obvious bet is to integrate a web browser control, assuming your user is online or it lets you browse to a local page.
 
Share this answer
 
You can do it in two ways I think;

1st;
On your toolbox right click on it and choose the "Choose items". When the page shows up choose "COM components". Then on the list find Shockwave Flash Object. Select it and it will appear under your components tab. Drag it your form and give the URL of your SWF file.

2nd way;

To your project, add a webbrowser. Then add the .SWF to the project as well. Create a link in the browser and or an HTML document that refers to the .SWF object and you will see the SWF movie run.
 
Share this answer
 
Comments
mhamad zarif 26-Jan-11 16:15pm    
Thanks for your kind help.But i have one question.When i add Shockwave Flash Object,how can i give it the url of the swf file ?
Orcun Iyigun 26-Jan-11 17:20pm    
I think Manfred gave the answer. AxShockwaveFlash1.Movie = "C:\\Users\\User\\Desktop\\something.swf" you should your own path for it tho.
Christian Graus 26-Jan-11 16:24pm    
You'll have an object, why not just use intellisense to work this out, or even google for documentation ?
XshivDeveloper 24-Jan-13 0:26am    
I want to know about how to add a progress bar in flash player like in any other player with can handle the position of video playing inside flash.
Shockwave Flash Object has these methods/properties you can use:
MSIL
AxShockwaveFlash1.Stop()
AxShockwaveFlash1.Movie = FilePath & "\yourflashfile.swf"
AxShockwaveFlash1.Play()


Hope that helps!
 
Share this answer
 
v2
Comments
mhamad zarif 26-Jan-11 16:33pm    
Thanks for your help.I appreciate it.
Espen Harlinn 30-Jan-11 15:56pm    
Nice and simple
you can use a webbrowser control and set its url. You can set URL as any flash url. The interlop schockwave com references are full of problems.
Parvez Ahmad http://www.abobjects.com
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900