I'm trying to get a picture box to load a new picture every second with a timer.
Heres my code.
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Do While Timer1.Enabled = True
frame = frame + 1
frame1 = 'Picture Location
frame2 = 'Picture Location
frame3 = 'Picture Location
frame = 0
Select Case frame
Case 1
Player.Image = Image.FromFile(frame1)
Case 2
Player.Image = Image.FromFile(frame2)
Case 3
Player.Image = Image.FromFile(frame3)
Case Is > 3
frame = 0
End Select
Loop
End Sub
What am i doing wrong that the program keeps crashing and the sequence doesn't work.