For Developers

How to Embed a Flash File into C# Window Form?

To embed a flash file in C# Windows .Net Application we can use Shockwave Flash Object ActiveX Control.


Follow the Steps to embed flash file:


Step 1: In Tool box right click and select the menu “Choose Items”.


Step 2: From Choose Toolbox Items window select “Com component” tab.


Step 3: Scroll down and make sure “Shockwave Flash Object" is ticked and click ok. The Shockwave Flash Object will now appear in the toolbox.


Step 4: Simply click and drag the Shockwave Flash Object to window Form.


Step 5: Add the Code "Form Load".


axShockwaveFlash1.LoadMovie(0, Application.StartupPath + "\\flash.swf");


These steps embed the flash file and loads “flash.swf” in the application path when window loads.

0 comments:

Post a Comment