VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



puts the time in the form caption

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


Rate puts the time in the form caption



    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

Download this snippet    Add to My Saved Code

puts the time in the form caption Comments

No comments have been posted about puts the time in the form caption. Why not be the first to post a comment about puts the time in the form caption.

Post your comment

Subject:
Message:
0/1000 characters