Reply

Join Date: Jul 2008
Posts: 161
Reputation: ryan311 has a little shameless behaviour in the past 
Solved Threads: 1
ryan311 ryan311 is offline Offline
Junior Poster

help timer

 
0
  #1
Apr 20th, 2009
hi to all my fellow programmers,

i'm creating now an attendance system. how to create a count down timer that will minus in the system time? it is possible and how? i have a 3 textbox 1 is for the hour, minutes and seconds. and 3 label for the count down,


first to do is type what time will be time out, for example is this

the time is now

11:09:58

all i want is this if the user type 12:00:00 in the time out the count down should began in

00:51:02

until it came up to 00:00:00

how can i do this? please help ASAP. badly needed.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,092
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 125
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: help timer

 
0
  #2
Apr 21st, 2009
you need to substract the system time from the user input and do the rest with a timer control.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 161
Reputation: ryan311 has a little shameless behaviour in the past 
Solved Threads: 1
ryan311 ryan311 is offline Offline
Junior Poster

Re: help timer

 
0
  #3
Apr 22nd, 2009
how?
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 807
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 147
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: help timer

 
0
  #4
Apr 23rd, 2009
With the use of the DateDiff function and either the time function or the now function, and you can look these up in vb's help. The timer control is in the toolbox of the standard exe project and placing one on your form, selecting it, and pressing F1 will allow you to read all about it.

Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 161
Reputation: ryan311 has a little shameless behaviour in the past 
Solved Threads: 1
ryan311 ryan311 is offline Offline
Junior Poster

Re: help timer

 
0
  #5
Apr 23rd, 2009
i have no MSDN intstall to my computer sir
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,092
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 125
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: help timer

 
0
  #6
Apr 23rd, 2009
You can find all info on line.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC