Displaying time on a Form

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2007
Posts: 4
Reputation: Arrow203 is an unknown quantity at this point 
Solved Threads: 0
Arrow203 Arrow203 is offline Offline
Newbie Poster

Displaying time on a Form

 
0
  #1
Mar 21st, 2007
Hey all~ I'm very new to VB.net infact i've only been so far through 2 classes but I'm still going. My personal Project that I'm doing is a simply display with some buttons that when you click on them that link to an exe file on my desktop. I've gotten that part down, but i'm having trouble locating code to add/Display time on my form.. I want it to display Vertical with the format of HH:MMS | MM/DD/YYYY. I want it to be in sync with my system time. Is there any way possibal of doing that? ^^; Thanks in advance for any help.:mrgreen:
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,266
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Displaying time on a Form

 
0
  #2
Mar 22nd, 2007
Have you tried the date() class?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 6
Reputation: japelweb is an unknown quantity at this point 
Solved Threads: 0
japelweb japelweb is offline Offline
Newbie Poster

Re: Displaying time on a Form

 
0
  #3
Mar 23rd, 2007
You need to add a Timer to you form and a Lable

Double click in the timer and it should up the code editor in the Timer Tick event.

In the Tick event you need to update the Lable.

Lable.text = Date.Now or there abouts..

Make sure the timer interval is set to 1 second, (timer is in milli seconds to it will be 1000)

Stick to it and all this will make sense soon.

JAPEL
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC