Using format NOW will just show the current time but the time will not run.
Is it possible to make it to make the time keep running??

Recommended Answers

All 3 Replies

use timer control. Set Enable as True in timer properties

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
    Label1.Text = Now
End Sub
commented: Beat me to it. :) +5

hi ,
you can add timer tool and write code like that

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Label1.Text = Now
End Sub

and in your form load do that

Timer1.Interval = 200
Timer1.Enabled = True
Label1.Text = Now

i hope it works

Use a Timer with interval set to 1000 and try this

Public Class Form1
Dim starttime As DateTime

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
Timer1.Start()
End Sub

Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Label1.Text = TimeString
End Sub
End Class

commented: do have any idea what your code will do ? -1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.