VB Coding Tip: Two Frame Animation Using a Timer

Monday Nov 18th 2002 by Sam Huggill
Share:

Perform two frame animation using a timer.

Sub Timer1_Timer() 
Static Choice As Integer 
'// Uses 3 picture boxes. 
'// Picture1 - visible display 
'//            Picture2&3 - pictures 
If Choice Then 
Picture1.Picture = Picture2.Picture 
Else 
Picture1.Picture = Picture3.Picture 
End If 
Choice = Not Choice 
End Sub 
Share:
Home
Mobile Site | Full Site
Copyright 2017 © QuinStreet Inc. All Rights Reserved