Put a timer control on your form and copy/paste this sample:
VB Code:
Private Sub Form_Load()
Timer1.Interval = 1000
Timer1.Enabled = True
Label1.AutoSize = True
Label1.Caption = "Elapsed time since login: 00:00:00"
End Sub
Private Sub Timer1_Timer()
Static lSeconds&
Dim sTime$
lSeconds = lSeconds + 1
sTime = Str$(lSeconds \ 3600) & ":" & _
Str$(lSeconds \ 60) & ":" & _
Str$(lSeconds Mod 60)
Label1.Caption = "Elapsed time since login: " & Format(CDate(sTime), "hh:nn:ss")
End Sub