您当前的位置: 首页 > 

彭世瑜

暂无认证

  • 3浏览

    0关注

    2791博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

VB编程:Timer控件中使用计数变量-24_彭世瑜_新浪博客

彭世瑜 发布时间:2016-11-22 09:24:36 ,浏览量:3

运行效果:
VB编程:Timer控件中使用计数变量-24
程序代码:
Private myint As Integer
Private Sub Form_Load()
    myint = 0
End Sub
Private Sub Timer1_Timer()
    myint = myint + 1
    If myint = 2 Then Me.BackColor = vbGreen
    If myint = 4 Then Me.BackColor = vbRed
    If myint = 6 Then Me.BackColor = vbBlue
    If myint = 10 Then myint = 0
End Sub
关注
打赏
1665367115
查看更多评论
立即登录/注册

微信扫码登录

0.2814s