首页 > 其他 > 详细

vb timer控件

时间:2015-06-05 15:17:24      阅读:329      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!