hello to all..
PLEASE HELP ME!!
i wanted to make a traffic light in vb using if then else..
3 circles (red, yellow & green) and a timer
i don't know how to make them appear one by one.. it's okay if it blinks.. this is the sequence..(red, yellow,green.re d,yellow,green. ............... )
i tried to make one but it came up with this kind of sequence..(red, yellow,red,gree n)
PLEASE HELP ME!!
[CODE=vb]
Private Sub Timer1_Timer()
If shape1.Visible = False Then
shape1.Visible = True
Else
shape1.Visible = False
If shape2.Visible = False Then
shape2.Visible = True
Else
shape2.Visible = False
If shape2.Visible = False Then
shape2.Visible = True
Else
shape2.Visible = False
end if
end if
end if
end sub
[/CODE]
PLEASE HELP ME!!
i wanted to make a traffic light in vb using if then else..
3 circles (red, yellow & green) and a timer
i don't know how to make them appear one by one.. it's okay if it blinks.. this is the sequence..(red, yellow,green.re d,yellow,green. ............... )
i tried to make one but it came up with this kind of sequence..(red, yellow,red,gree n)
PLEASE HELP ME!!
[CODE=vb]
Private Sub Timer1_Timer()
If shape1.Visible = False Then
shape1.Visible = True
Else
shape1.Visible = False
If shape2.Visible = False Then
shape2.Visible = True
Else
shape2.Visible = False
If shape2.Visible = False Then
shape2.Visible = True
Else
shape2.Visible = False
end if
end if
end if
end sub
[/CODE]
Comment