Private Sub Timer1_Timer()
Me.Lbltime.Caption = Me.Lbltime.Caption - 1
If Me.Lbltime.Caption = "5" Then
MsgBox "时间还有5分钟!!!"
End If
If Me.Lbltime.Caption = 0 Then
MsgBox "时间到了!"
Unload Me
End If
times = Me.Lbltime.Caption
End Sub
Private Sub Form_Load()
Timer1.Interval = 3000
Me.Lbltime.Caption = times
End Sub