by M. Akram (7 Submissions)
Category: Miscellaneous
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Wed 9th May 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Time and Date just with click on the label.
'Task: This Shows Time And Date On a Form Using a Label And Timer
'Declarations
'Code:
'place a timer and label on a form
'for the timers event double click it and type in
Label1.Text = Now
'set the timer to 100
End Sub
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
Label1.Text = Now
End Sub
End Class