Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm having a bit of trouble trying to display the time in the status bar so that it updates automatically to the current time.

 

Can anyone help me and give me an example of how to do this in vb.net?

 

cheers

 

simon

Posted

The easiest way (may not be the most efficient)..drop the statusbar and a timer on the form, enable the timer and set the tick event to

 

StatusBar1.Text = String.Format("The current time is {0:T}", DateTime.Now)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...