How to simple digital clock in vb.net?
I this tutorial you can learn how to make digital clock in vb.net
To do this program following steps to be followed
Step1:
Open Microsoft visual studio 2010 or any older version also may differ commands
Step2:
Open file new project(ctrl+shift+n)àselect windows form applicationà rename as you wish
Step3:
Drag and drop one label, and one button
Label1.textà00:00:00
Label1.fontàds crystal 50
Buttonàsize small , style as flat
Step4:
Copy and paste the following code
Public Class Form1
Private SubTimer1_Tick_1(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesTimer1.Tick
Label1.Text = TimeOfDay
End Sub
Private SubButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) HandlesButton1.Click
Close()
End Sub
End Class
Output:
No comments:
Post a Comment