Keep time updated on form

  • Thread starter Thread starter jaytm
  • Start date Start date
J

jaytm

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?

thanks
 
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.
 
Michael said:
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.

Thanks Mike....works gr8
 
Michael D. Ober said:
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.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top