Time Countdown in Console Application
hello,
I am very new in C# language and i am trying to use timer in my console application but i want to be able to countdown time.
so please any idea for that.
thanks
Maher
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manikandan MurugesanRank #300 · 8.4K reputationPosted Aug 3, 2017, 11:22 PM EDT
Manikandan MurugesanRank #300 · 8.4K reputationPosted Aug 3, 2017, 11:20 PM EDT
There are two ways i know of doing what you want
1) Use
Console.SetCursorPosition();. This is applicable when you are sure of the amount of characters that will be above the timer.2) Use
Console.CursorLeft. This is applicable in all cases.M Maher14 reputationPosted Aug 4, 2017, 10:32 AM EDT
Manikandan MurugesanRank #300 · 8.4K reputationPosted Aug 4, 2017, 4:54 PM EDT