加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

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

发布时间:2020-12-16 22:39:53 所属栏目:大数据 来源:网络整理
导读:Option Explicit Private Sub Command1_Click() End End Sub 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 Private Sub Timer1_Timer()

Option Explicit

Private Sub Command1_Click()
End
End Sub

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

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读