countdown to a specific date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey,
I am working on creating a countdown from the current date to a specified
date later on, using days, hours, minutes, and seconds, updating every
second. I have been searching and searching, and I have figured out how to
get the current date. The problem is, I don't know how to use the new
"Timer" that comes with visual studio 2005. so, now that i have the current
date, i don't know how to count down to the future date. can anyone help? i
know this is a common problem, so forgive me for being too green!!!
Thanks
 
Hi Rush,

There are multiple Timer classes (classes that raise an event at a
predefined interval) in the .NET framework, but I don't believe there are
any that are new to the .NET 2.0 framework. You must choose your Timer
based on the needs of your application, although all timers simply require
registration of an event handler for the 'time elapsed' event and a
predefined interval in which to raise the event, at the least.

What is your language of choice? C#, Visual Basic.NET, J#, Managed C++? Are
you developing a Windows Forms application or an ASP.NET web application?

Someone can provide a short code example for you or some recommendations
with some more information about the problem at hand. Do you expect to
update a user interface every second? What code do you expect to execute
every second?

- Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Excel Excel Show Countdown Date 7
Countdown Timer - not stopwatch 9
Countdown timer 1
Countdown from Entered Date 4
Install a daily countdown in PowerPoint 7
countdown timer 2
countdown clock? 1
Expiration Date countdown 2

Back
Top