Private Sub Form_Load()
Text1.Locked = True
Text1.Text = 60
Timer1.Interval = 1000
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
If Val(Text1.Text) - 1 <= 0 Then
Text1.Text = 60
Else
Text1.Text = Val(Text1.Text) - 1
End If
End Sub
在文本框的CHANGE事件中,写入注射器的刷新方法