Countdown Timer of Hours, Minutes and Seconds using Timer
12:56 AM
| Posted by
Unknown
|
CODE
Option Explicit
Private AlarmTime As Date
Private Sub Form_Load()
AlarmTime = DateAdd("h", 2, Now)
End Sub
Private Sub Timer1_Timer()
Dim txt As String
txt = Format$(AlarmTime - Now, "h:mm:ss")
Label1.Caption = txt
End Sub
Click Timer Activity to Download the Full Project of this Program then try it on your own...
Option Explicit
Private AlarmTime As Date
Private Sub Form_Load()
AlarmTime = DateAdd("h", 2, Now)
End Sub
Private Sub Timer1_Timer()
Dim txt As String
txt = Format$(AlarmTime - Now, "h:mm:ss")
Label1.Caption = txt
End Sub
Click Timer Activity to Download the Full Project of this Program then try it on your own...
Labels:VB 6.0 Sample Program