How to Show Date and Time in Form VB Net 2013

How to Show Date and Time in Form VB Net 2013
In this lesson VB NET 2013, I will share about How to Show Date and Time in Form VB Net 2013. Time and Date if very important to show in Form Transaction.

See also : How to Create Login Form POS Application

Open VB Net 2013 in your computer
Click FILE - New Project
And then show below picture :
Click OK
Design Form1 like below picture :
and then place below code at Form1.vb
Public Class Form1

    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        Label4.Text = Today

    End Sub
    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
        Label3.Text = TimeOfDay
    End Sub
End Class
Don't forget to enable Timer1

Here for the result :

Is it easy??? Thank you for visiting Blog BelajarVB and Stay tuned for our next lesson :)

Subscribe to receive free email updates:

0 Response to "How to Show Date and Time in Form VB Net 2013"

Post a Comment