Tag Archives: countdown

Use System.Threading.Timer to make a countdown timer in C#

The post Make a countdown timer in C# uses a Timer control to count down the time until some deadline. This example does something similar but it uses a Timer object from the System.Threading namespace. The basic idea is similar: … Continue reading

Posted in miscellany, system | Tagged , , , , , , , , , , , , | Leave a comment

Make a countdown timer in C#

When the program starts, it sets the event name and time. It then enables the Timer control. // Initialize information about the event. private const string EventName = “End of the World”; private DateTime EventDate = DateTime.Now + new TimeSpan(1, … Continue reading

Posted in miscellany | Tagged , , , , , , , , | 6 Comments