Microsoft & .NET Visual Basic VB Coding Tip: Two Frame Animation Using a Timer

VB Coding Tip: 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 

Latest Posts

Related Stories