VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Make a clock on your forms. Shows hours, minutes, and seconds. Looks like this: 12:00:00 PM

by Photonhelix (2 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Tue 20th June 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Make a clock on your forms. Shows hours, minutes, and seconds. Looks like this: 12:00:00 PM

Rate Make a clock on your forms. Shows hours, minutes, and seconds. Looks like this: 12:00:00 PM



2) add a Timer.
 Place this code on the timer:
     Private Sub Timer1_Timer()
     Label1.Caption = Time
     End Sub
3) Place this code on the Form_Load action:
     Private Sub Form_Load()
     Label1.Caption = Time
     End Sub

Note: Timer Interval must be set to 1000

Download this snippet    Add to My Saved Code

Make a clock on your forms. Shows hours, minutes, and seconds. Looks like this: 12:00:00 PM Comments

No comments have been posted about Make a clock on your forms. Shows hours, minutes, and seconds. Looks like this: 12:00:00 PM. Why not be the first to post a comment about Make a clock on your forms. Shows hours, minutes, and seconds. Looks like this: 12:00:00 PM.

Post your comment

Subject:
Message:
0/1000 characters