timer in VB.net

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

Join Date: Jan 2006
Posts: 11
Reputation: gracea is an unknown quantity at this point 
Solved Threads: 0
gracea gracea is offline Offline
Newbie Poster

timer in VB.net

 
0
  #1
Jan 7th, 2006
Hi,
I am a VB.net greenhorn so my problem might seem trivial but for me it is getting to be a Herculean and confusing task.
My problem is that I am making a project where the user has to give a quiz where he/she has the choice of number of questions and time limit which can be in hours, minutes or seconds depending on three respective textboxes. (00 for hours if only limit in minutes is needed etc).when the quiz starts, the time countdowns from the user entere values to 00:00:00.
The question part I can handle, but this time part in VB.net is the problem.
Please someone rescue me! I shall be eternally grateful
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 44
Reputation: Ooble is an unknown quantity at this point 
Solved Threads: 6
Ooble's Avatar
Ooble Ooble is offline Offline
Light Poster

Re: timer in VB.net

 
0
  #2
Jan 7th, 2006
What is the problem, exactly? Having trouble converting the numbers into a time?
  1. while(sleeping)
  2. cat_wails();
  3. wake_up();
  4. for(i=0;i<9;i++)
  5. shoot_cat();
  6. rejoice();
  7. goto(bed);
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 11
Reputation: gracea is an unknown quantity at this point 
Solved Threads: 0
gracea gracea is offline Offline
Newbie Poster

Re: timer in VB.net

 
0
  #3
Jan 8th, 2006
no! How to use the timer to count down from the given time. if the user says that he wants to take 2 hrs,7 minutes and 59 seconds to complete the quiz ,the timer should start from 2:07:59 and countdown to 00:00:00.That's what. I'm at my wits end here.Pleeez help!!
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 44
Reputation: Ooble is an unknown quantity at this point 
Solved Threads: 6
Ooble's Avatar
Ooble Ooble is offline Offline
Light Poster

Re: timer in VB.net

 
0
  #4
Jan 8th, 2006
Convert the time into seconds, then into milliseconds, and use the Timer control.
  1. while(sleeping)
  2. cat_wails();
  3. wake_up();
  4. for(i=0;i<9;i++)
  5. shoot_cat();
  6. rejoice();
  7. goto(bed);
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 11
Reputation: gracea is an unknown quantity at this point 
Solved Threads: 0
gracea gracea is offline Offline
Newbie Poster

Re: timer in VB.net

 
0
  #5
Jan 9th, 2006
That, my friend,is mathematical and correct yet not the solution .But thanks a million for ur concern. :-)
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 11
Reputation: gracea is an unknown quantity at this point 
Solved Threads: 0
gracea gracea is offline Offline
Newbie Poster

Re: timer in VB.net

 
0
  #6
Jan 9th, 2006
anyways cud u help me on this one? when i try to output a particular value to a label ,all inside a loop, the value in the label comes out as the final value and not the subsequent values that should appear with each loop execution?????!!!!!!!!!!
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 40
Reputation: beuls is an unknown quantity at this point 
Solved Threads: 2
beuls beuls is offline Offline
Light Poster

Re: timer in VB.net

 
0
  #7
Jan 25th, 2006
if u use a loop definitely u'll get only the last value...but u can write the code in a timer event
Reply With Quote Quick reply to this message  
Join Date: Jan 2006
Posts: 11
Reputation: gracea is an unknown quantity at this point 
Solved Threads: 0
gracea gracea is offline Offline
Newbie Poster

Re: timer in VB.net

 
0
  #8
Jan 31st, 2006
I tried exactly that but to no avail.
But Thanx!!

Can anyone tell me how to connect a form in vb.net to use an MS-Access database
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 VB.NET Forum
Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC