用vb制计时器4个命令按钮分别为开始,暂停,重置,退出,1个计时器,1个文本框
2个回答
展开全部
你的意思我明白,代码如下:
Private Sub Form_Load()
Command1.Caption = "开始"
Command2.Caption = "暂停"
Command3.Caption = "重置"
Command4.Caption = "退出"
Timer1.Enabled = False
End Sub
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
End Sub
Private Sub Command3_Click()
Reset Timer1
End Sub
Private Sub Command4_Click()
End
End Sub
看看
Private Sub Form_Load()
Command1.Caption = "开始"
Command2.Caption = "暂停"
Command3.Caption = "重置"
Command4.Caption = "退出"
Timer1.Enabled = False
End Sub
Private Sub Command1_Click()
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
End Sub
Private Sub Command3_Click()
Reset Timer1
End Sub
Private Sub Command4_Click()
End
End Sub
看看
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询