I read Kulrom's post regarding loading a gif animation in the form load event last night.[FONT="]
The link to the following quote is: http://www.vbdotnetforums.com/showth...=gif+animation[/FONT]
The link to the following quote is: http://www.vbdotnetforums.com/showth...=gif+animation[/FONT]
I just did a simple test using an animated GIF file and a picturebox control. I loaded the gif in the Form Load event like so:
PictureBox1.Image = Image.FromFile(Application.StartUpPath & "\myGif.gif")
and it works fine. Maybe, your problem is you are setting the .Image source from Design Mode instead of doing it from Form Load. Try setting the image source in code instead of in the Form Designer and see if that fixes your problem.
I took your advice and placed the image in the picture box when the form loads as quoted above. The problem is I only want to run the animation one time when my application starts instead it runs continually. I created the animation with Jasc Animation shop 3 and set it to run only once.
The gif contains 52 frames of playing cards which fan across the screen in a picture box when the program is compiled and run.
This windows application is my first attempt writing in VB .Net 2003 so I really need some help. I've been doing a lot of searching for a solution to this problem and haven't found a good answer.
Can you give me some code examples how to set the anamation to run one time.
Thanks
mduffy