[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2008-06-25
2
Medium Priority
?
1,023 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

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

649 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