Microsoft & .NETVisual BasicVB Coding Tip: Two Frame Animation Using a Timer

VB Coding Tip: Two Frame Animation Using a Timer

Developer.com content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

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 

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Latest Posts

Related Stories