VB工程19--百例37--交通红绿灯

前端之家收集整理的这篇文章主要介绍了VB工程19--百例37--交通红绿灯前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_403_1@

Option Explicit@H_403_1@

Private Sub Command1_Click()
End
End Sub@H_403_1@

Private Sub Form_Load()
Image1(0).Left = Image1(1).Left
Image1(0).Top = Image1(1).Top
Image1(2).Left = Image1(1).Left
Image1(2).Top = Image1(1).Top
End Sub@H_403_1@

Private Sub Timer1_Timer()
If Image1(0).Visible = True Then
Image1(0).Visible = False
Image1(1).Visible = True
ElseIf Image1(1).Visible = True Then
Image1(1).Visible = False
Image1(2).Visible = True
ElseIf Image1(2).Visible = True Then
Image1(2).Visible = False
Image1(0).Visible = True
End If

End Sub @H_403_1@

原文链接:https://www.f2er.com/vb/260424.html

猜你在找的VB相关文章