How to run swf file from c#?
-
I want to run swf file from C# windows application. I am able to run .wav file but not .swf file. Thanks
.swf isn't supported by windows media player and the .net media player classes share a common core with it. I believe there's a flash playing COM object that gets installed with flash player automatically. You'll have to add a reference to it in your project and use it to play the file.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall
-
I want to run swf file from C# windows application. I am able to run .wav file but not .swf file. Thanks
1.right click on toolbox at general select add new items 2.one popup is appeared with add references title select COM tab 3.select shock wave object 4.click on ok 5.u will find shock wave object on toolbox at general tab 6.now drag and drop ur flash object to windows form then add below code string path = System.Environment.CurrentDirectory; path += @"\Top_1.swf"; axShockwaveFlash1.LoadMovie(0, path); axShockwaveFlash1.Play(); Have a nice day