As i allready explaint.
You did use a Picturebox on your form. You can not(normaly) play a animated gif with a Picturebox.
To do this:
- PRESS Ctrl+T (the VB6 components window will open)
- Now SELECT the last one in the list( it should be Windows Media Player).
After you pressed OK an new component will be in your TOOLBOX.
- Choose this component and draw it on your form.
Now you only have to change the properties (in the properties window).
- type at URL the location of your animated GIF(eg c:\tem\file.gif )
- type at UIMODE none (this will show only your gif, no tools)
- Now start your program and it will show your animeted Gif.
As you see there is NO CODE to do this(why use code when this is easier)
Comment