Code:
Private Sub Form_Load()
Label1.Caption = Time$
label2.Caption = Time$
End Sub
Private Sub Timer1_Timer()
label2.Caption = Time$
End Sub
Private Sub label2_Change()
Dim Secs As Integer
Dim Mins As Integer
Dim Hours As Integer
Secs = Right(label2.Caption, 2) - Right(Label1.Caption, 2)
If Secs < 0 Then Secs = 60 - Right(Label1.Caption, 2) + Right(label2.Caption, 2)
If Right(label2.Caption, 2) >= Right(Label1.Caption, 2) Then Mins = Val(Mid$(label2.Caption, 4, 2)) - Val(Mid$(Label1.Caption, 4, 2))
If Mins < 0 Then Mins = 60 - Val(Mid$(Label1.Caption, 4, 2)) + Val(Mid$(label2.Caption, 4, 2))
Hours = Left(label2.Caption, 2) - Left(Label1.Caption, 2)
Text1.Text = Hours & ":" & Mins & ":" & Secs
Secs = "0"
End Sub
This pretty much does it you'll need 2 labels 1 timer 1 textbox
[This message has been edited by DiGiTaIErRoR (edited 12-03-1999).]