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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manikandan MurugesanPosted Aug 4, 2017, 3:22 AM
Manikandan MurugesanPosted Aug 4, 2017, 8:54 PM
M MaherPosted Aug 4, 2017, 2:32 PM
Manikandan MurugesanPosted Aug 4, 2017, 3:20 AM
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.