Drew
April 11th, 2001, 01:25 PM
This code plays a gif file on my form. How can I change the code to play the file just once.
private Sub tmrAnimation_Timer()
static intAnimate as Integer
static intUnload as Integer
static intUpDown as Integer
intAnimate = intAnimate + 1
If intAnimate < 9 then
imgShow.Picture = imgLogo(intAnimate).Picture
else
imgShow.Picture = imgLogo(9).Picture
intAnimate = 0
intUnload = intUnload + 1
End If
End Sub
private Sub tmrAnimation_Timer()
static intAnimate as Integer
static intUnload as Integer
static intUpDown as Integer
intAnimate = intAnimate + 1
If intAnimate < 9 then
imgShow.Picture = imgLogo(intAnimate).Picture
else
imgShow.Picture = imgLogo(9).Picture
intAnimate = 0
intUnload = intUnload + 1
End If
End Sub