码迷,mamicode.com
首页 > 其他好文 > 详细

vb timer控件

时间:2015-06-05 15:18:27      阅读:148      评论:0      收藏:0      [点我收藏+]

标签:

1、VB的timer的Interval的取值范围0-65535毫秒,大约是0-65.6秒之间 2、interval属性是定义多久触发一次timer事件 3、timer控件只有在enabled为true并且interval大于0 才生效 4、timer中的变量要声明为公用变量,因为timer每次执行时相互独立的 例: Private Sub Form_Load() Timer1.Interval = 1000 Timer1.Enabled = True Label1.Visible = False End Sub Private Sub Timer1_Timer() ‘Print Time Label1.Visible = True Label1.Caption = Now() End Sub

vb timer控件

标签:

原文地址:http://www.cnblogs.com/littlecountry/p/4554487.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!