How to insert flash in vb.net

This article shows you how to embed/insert flash in your vb.net applications

How to link Micromedia Flash File in VB.Net
 

First of all create Flash MX file with extension .swf 

Now create a new project in vb.net Right click on the tool box. Select “Add/Remove Items". Select “COM Components” Select “Shockwave Flash Object”. Click OK. Then you can see the Shockwave Flash Object in the tool bar. Drag this tool on the form also drag a button on the form. Place the Flash MX file in bin folder of the project. Now double click on the form and write code on form load event

 

 

 

double click on the button and wrilte the following code on the Button1_Click event

 

AxShockwaveFlash1.Stop()

AxShockwaveFlash1.Movie = Application.StartupPath & "\segment1.swf"

AxShockwaveFlash1.Play()

Button1.Text = "Play"