• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

Clock

Is there a way to put a date and time(clock) ? Now just stamp date and time.


    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.Text = "Time  " & Now
       
    End Sub
0
VBdotnet2005
Asked:
VBdotnet2005
1 Solution
 
AlexFMCommented:
Add Timer control to the form. You can find it in Form Designer toolbox. Set Enabled Timer property to True and Interval to 1000. Double-click on timer and fill timer handler:

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
         Me.Text = "Time  " & Now
    End Sub
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now