date and clock

panjul

Member
Joined
Jun 7, 2007
Messages
21
Programming Experience
Beginner
Please help...
DO u know how t generate or display digital clock and date today in windows form ??
 
Then you need to use the Timer control..
Place the timer control at 1 sec delay or so.. depending on how often you want it to update..

Then doubleclick the timer control, and you get the sub where what you want the timer to do when the delay is "over"..
So then it will do this everytime 1 sec or when u place the timer..
just make a label1.text = Date.Now <-- and just add hours, minutes, secs etc after what u want..

btw: the timer is based on millisec's..
1000 = 1 sec :p
AND the timer starts with enabled = false as default
 
Last edited:
Write like this:

Date.now.hour & ":" & date.now.minute & ":" & date.now.second <-- then you get the hour, minute, and second that is now..

th ":" is just to make it look more like a clock :p
 
Back
Top