?
Solved

countdown timer in hh:mm:ss with on resume function... (vb 2003)

Posted on 2008-06-25
2
Medium Priority
?
1,016 Views
Last Modified: 2009-03-23
Hi Experts,

I'd like to create a winform with a timer value and it will save the timer value e.g. start value = 23 hours 60 min 60 sec to a text file.

1. click button and it saves the start value as text to a .text file.
2. A timer on the winform will count down to 0 (in time to the windows system clock (real-time)

(The reason for the text file is so that if I close the winform for xx hours and open it again, it will resume countdown and deduct the passed time and adjust the timer.) then save the current time to the text file.

3. When the timer gets to 0 it stops counting and performs an action.
4. If I click the button again, it starts the process all over again, but saves an alternative filename.. e.g. textfile2.txt; and so on...

Hope this isn't too difficult.

I've played with timers but this is out of my league.

Regards,
Roberto
0
Comment
Question by:RobertoFreemano
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Expert Comment

by:GHCS_Mark
ID: 21870735
You need to look at using TimeSpan objects and deduct the DateTime.Now value from your saved DateTime.
0
 

Accepted Solution

by:
RobertoFreemano earned 0 total points
ID: 21941493
I've no idea how to do this

:(

but thanks anyway.

Roberto
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question