Tuesday, 13 March 2012

vb.net simple digital clock?

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
Open Microsoft visual studio 2010 or any older version also may differ commands
Open file new project(ctrl+shift+n)àselect windows form applicationà rename as you wish
Drag and drop one label, and one button
Label1.fontàds crystal 50
Buttonàsize small , style as flat  
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

    End Sub
End Class


No comments:

Post a Comment