curtis03
January 9th, 2000, 09:09 PM
I am new at VB, this list also.
Thought I'd start out with an easy question,,, here goes.
Below is my code, I want to have a timer, control array of 3 images and a blank image box
When the timer reaches a certain time one images appears, after a few clicks another,, and so on.
Heres the code I am trying, Its sticks on the first image.
Any ideas were I'm messing up?
Private Sub Form_Load()
Select Case Image
Case Is > 0
If time > 0 Then
Image1.Picture = st(0)
End If
Case Is >= 10
If time >= 10 Then
Image1.Picture = st(1)
End If
Case Is >= 20
If time >= 20 Then
Image1.Picture = st(2)
End If
End Select
End Sub
Private Sub Timer1_Timer()
time = time + 1
If time = 30 Then
time = 0
End If
End Sub
Thanks for your time
curtis03
Thought I'd start out with an easy question,,, here goes.
Below is my code, I want to have a timer, control array of 3 images and a blank image box
When the timer reaches a certain time one images appears, after a few clicks another,, and so on.
Heres the code I am trying, Its sticks on the first image.
Any ideas were I'm messing up?
Private Sub Form_Load()
Select Case Image
Case Is > 0
If time > 0 Then
Image1.Picture = st(0)
End If
Case Is >= 10
If time >= 10 Then
Image1.Picture = st(1)
End If
Case Is >= 20
If time >= 20 Then
Image1.Picture = st(2)
End If
End Select
End Sub
Private Sub Timer1_Timer()
time = time + 1
If time = 30 Then
time = 0
End If
End Sub
Thanks for your time
curtis03