by VB-Student (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sun 19th January 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
puts the time in the form caption
API Declarations
'works in vb5 and 6 and probably more
'same as putting time in a label, but then in the form, I put it there often
Timer1.Enabled = True
Timer1.Interval = 1000
End Sub
Private Sub Timer1_Timer()
Me.Caption = "The time is now " & Format(Time, "hh:nn:ss")
End Sub