use flash within vb.net application

ssfftt

Well-known member
Joined
Oct 27, 2005
Messages
163
Programming Experience
1-3
I have developed a simple application, my friend designed a startup flash animation (.swf file) for me, but i have no idea how to combine this file with my application so that it will appear every time when i run the exe file of my application.
plz help
 
ssfftt,
Add Shockwave Flash Object to your component toolbox by selecting it in COM list (Shockwave must be installed to your machine prior to this, usually is via various websites).
Now you got a control you can add to the form.
In code you can do this to load and start the movie:
VB.NET:
AxShockwaveFlash1.Movie = Application.StartupPath & "\elvis.swf"
AxShockwaveFlash1.Play()
 
thx kulrom, you are right, i just want a starting movie before login form appears.
also John-H, thx for your help :)
I am implementing your ideas atm, will feedback soon.
 
Last edited:
kurom, could you plz help more on how to attach the flash to the form? Is it the same way as John-H described? if so, where should i put the code John-H suggested?
 
ssfftt, if you just want to play a Flash movie, add the reference and the control to your form, add the code I told where you want the code to start (form load looks like)
 
Back
Top