by M. Akram (7 Submissions)
Category: Miscellaneous
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Mon 8th October 2007
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Shows you a clock in very simple way in VB.net
End Sub
'Task: Make a simple clock that tells the time.
'Declarations
'Code:
'Needs:
''1 Timer (interval = 60)
'1 Label (call it 'lblTime')
Private Sub lbltime_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lbltime.Click
End Sub
Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
lbltime.Text = TimeString
End Sub
End Class