PDA

Click to See Complete Forum and Search --> : gif not animated?


Gavinho
Feb 25th, 2005, 03:58 PM
hi,

I am new to Visual Basic and I am currently using the Excel Visual Basic editor to create a football league game. I have nearly finished it and I now want to start adding some graphics it to to improve the interface. The problem is that when I place a animated gif image into the background or into a picture box, only the first frame is shown. Does anyone know how I could get the gif to play properly? I read somewhere on the net that you have to use a "loop" and "do events". Could someone please tell me the code which I require?

Thanks

Gavinho

RobDog888
Feb 25th, 2005, 07:11 PM
Welcome to the Forums.

The loop logic may put a drain on your resources if you have allot of gifs to animate.
You would need to split the animated gif appart in to separate images for each frame.
Then loop changing each image in the picturebox creating the animation effect.

There is a dll that is suppossed to help display animated gifs. Its the gif89.dll or something like that. Try a search
for some threads on it. I remember reading about them here on the forums.