Groups | Blog | Home
all groups > vb.net > january 2005 >

vb.net : Keep time updated on form



Michael D. Ober
1/9/2005 9:12:26 PM
Take a look at the timer class. Basically, create a timer on your form that
will trigger every second and update the form's time in the timer event.

Mike Ober.

[quoted text, click to view]


jaytm
1/9/2005 10:50:06 PM
I am trying to figure out how to place the current time on a form and
keep it current. Can someone please point me to a tutorial or code on
how to do this in vb.net?

jaytm
1/9/2005 11:32:16 PM
[quoted text, click to view]

Herfried K. Wagner [MVP]
1/10/2005 1:45:37 PM
"Michael D. Ober" <obermd.@.alum.mit.edu.nospam> schrieb:
[quoted text, click to view]

If you are displaying seconds, I would choose a smaller timer tick interval
for updating the display.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

AddThis Social Bookmark Button