0

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??

4
Contributors
3
Replies
5
Views
5 Years
Discussion Span
Last Post by Gé48
1

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
Votes + Comments
Beat me to it. :)
-1

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

-1

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

Votes + Comments
do have any idea what your code will do ?
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.