473,396 Members | 1,784 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Countdown/pause/resume timer

Hello Peeps

I have created a program in VB.NET 2003 that counts down from 7.5 hours to
zero from 08:00. I have a button that starts a new countdown from 1 hour to
zero whilst the first one is couting down from 7.5 hours.

How do I pause that time that is counting down from 1 hour & behind a new
button restart it without losing one second?

I would also like the time to count down from 37 hours, but will pause after
7.5 hours until 08:00 the next day.

Here's a recap:

1) Time now counting every second
2) Time from 08:00 + 7.5 hours counting down (16:30 to 08:00)
3) 1 Hour starting from a button press counting down to zero
4) Another button which can pause the 1 hour countdown (see 3 above)
5) Timer that starts at 08:00 on Monday counting down from 37 hours, which
pauses each day at 16:30 & restarts the next day at 08:00 until it reaches
00:00 (Friday afternoon at 16:30)

Four labels:

Label 1 = number 1 above (example: Dim dt As DateTime =
DateTime.Now.ToLongTimeString : Label1.Text = dt.ToString)
Label 2 = number 2 above
Label 3 = number 3 & 4 above
Label 4 = number 5 above

Any ideas as Im pulling my hair out over this one

TIA

JimJam
Mar 3 '06 #1
3 4357

"JimJam" <ji*****@slimfastplan.cheap> wrote in message
news:ud**************@TK2MSFTNGP15.phx.gbl...
I have created a program in VB.NET 2003 that counts down from 7.5 hours to
zero from 08:00. I have a button that starts a new countdown from 1 hour
to
zero whilst the first one is couting down from 7.5 hours.

How do I pause that time that is counting down from 1 hour & behind a new
button restart it without losing one second?


This is VERY hard to follow!

Mar 3 '06 #2
He he !

Well, atleast I wasn't the only one who couldn't make head or tail of
the question.

Regards,

Cerebrus.

Mar 4 '06 #3
JimJam,

In my idea is this just use the DateTime, in that the method
DateTime.AddWhatever(negative) and this in a normal form timer event that
you have dragged on your form.

However I don't start a sample for you, that you have to do yourself.

I hope this helps,

Cor

"JimJam" <ji*****@slimfastplan.cheap> schreef in bericht
news:ud**************@TK2MSFTNGP15.phx.gbl...
Hello Peeps

I have created a program in VB.NET 2003 that counts down from 7.5 hours to
zero from 08:00. I have a button that starts a new countdown from 1 hour
to
zero whilst the first one is couting down from 7.5 hours.

How do I pause that time that is counting down from 1 hour & behind a new
button restart it without losing one second?

I would also like the time to count down from 37 hours, but will pause
after
7.5 hours until 08:00 the next day.

Here's a recap:

1) Time now counting every second
2) Time from 08:00 + 7.5 hours counting down (16:30 to 08:00)
3) 1 Hour starting from a button press counting down to zero
4) Another button which can pause the 1 hour countdown (see 3 above)
5) Timer that starts at 08:00 on Monday counting down from 37 hours, which
pauses each day at 16:30 & restarts the next day at 08:00 until it reaches
00:00 (Friday afternoon at 16:30)

Four labels:

Label 1 = number 1 above (example: Dim dt As DateTime =
DateTime.Now.ToLongTimeString : Label1.Text = dt.ToString)
Label 2 = number 2 above
Label 3 = number 3 & 4 above
Label 4 = number 5 above

Any ideas as Im pulling my hair out over this one

TIA

JimJam

Mar 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bonnett | last post by:
I have been creating a generic countdown timer (source code below), counting the seconds, minutes, hours and days till an event, but I have having trouble with it finding out how many hours are...
4
by: Christine | last post by:
I've implemented a countdown timer for a tutorial web page that should give the user 45 minutes to complete the test, only to find that the timer is slowly 'losing' time. On average, it actually...
8
by: Michael | last post by:
I have this script that works the way I want except for one thing... Once it hits zero it starts to count up and looks like this: -1:0-1:0-1:0-18 with the last number counting up. Can anyone...
1
by: Will | last post by:
I have form showing instructions and logging actions and I would like the form to show a count down timer for a certain period of time. E.g. 30 secs, going down to 0 and then displaying the action....
2
by: Dave | last post by:
I have a program that I need the program to temporarly stop and wait for a response from a piece of equipment. After a set period I want the program to continue. Like below --execute lline...
1
by: baillie11 | last post by:
Hi all, im in a pickle. I have a created a Texas Holdem Poker Timer for my Friday night Poker games. I am using an MS Access Database to store and retrieve my saved blind levels with the round...
9
by: MC | last post by:
I would like to display a timer in the corner of the page that shows the user how many minutes:seconds till the session times out. Are there any good examples out there? Google has again failed...
5
mageswar005
by: mageswar005 | last post by:
hi, I need a javascript countdown timer to my website, I have already the countdown timer but its have some problem. Note: 1) If i choose the tools/internet option in my browser means , at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.