by info_hacker (1 Submission)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (7 Votes)
This code displays the date and time In digital format!!!
very cool and easy PLEASE VOTE(good votes only) lol only joking
Inputs
A form
2 Labels (make them blank)
2 timers (make both intervals 1)
Assumes
nothing
Code Returns
nothing
Side Effects
None that i know of.
'Replace the text in the first timer with the following'
Private Sub Timer1_Timer()
Label1.Caption = Time
End Sub
'Replace the text in the Second timer with the following'
Private Sub Timer2_Timer()
Label2.Caption = Date
End Sub
'Remember make sure you set the timer intervals to 1'
'and make sure the labels are blank'
'otherwise it wont work!'