VB中的编程问题:timer1启动5s后 timer2 启动,代码怎么写?主要就是这个5秒要怎么控制
2个回答
展开全部
Private Sub Command1_Click()
Timer1.Enabled = True
Print Time
End Sub
Private Sub Form_Load()
Timer1.Enabled = False
Timer1.Interval = 4000
Timer2.Enabled = False
Timer2.Interval = 1000
End Sub
Private Sub Timer1_Timer()
Timer1.Enabled = False
Timer2.Enabled = True
End Sub
Private Sub Timer2_Timer()
Print Time
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询