版主看看我的倒计时程序,哪错了呢,帮忙下嘛。
Private Sub Command1_Click()a = InputBox("输入倒计时间单位为秒", "时间输入框", "60")
Timer1.Interval = 1000
End Sub
----------------------
Private Sub Timer1_Timer()
For a = 1 To 60
a = (a - 1) / 60
HScroll1.Value = n
If a = 0 Then
MsgBox "时间到了"
End If
Exit For
Next
End Sub
我不论输入多少,都立马就弹出对话框时间到了,汗,