Private Sub cmdSetTijd_Click()
On Error Resume Next tijd = InputBox("Geef de tijd")
lblTijd.Caption = "Ingestelde tijd: " & Format(tijd,
"hh:mm:ss")
End Sub
Private Sub cmdStart_Click()
If lblTijd.Caption = "Ingestelde tijd: " Or lblTijd.Caption =
"" Then Exit Sub
Timer1.Interval = 1000 Timer1.Enabled = True
End Sub
Private
Sub Timer1_Timer()
verlopentijd = verlopentijd + #12:00:01 AM#
lblVerlopen.Caption = "Verlopen tijd: " & verlopentijd
& vbCrLf & "Nog te gaan: " & Format(tijd - verlopentijd,
"hh:mm:ss")
If verlopentijd >= tijd Then
Beep
Timer1.Enabled = False
End If
End Sub