How to do countdown Windows Forms.

Hi I would like to do countdown but in code. You can see 3 texts for same label and I want 5s delay before next comes up. But if I use Task.Delay it will show only first and last text. Any ideas?
No description
8 Replies
♡Mr. L0stík♡
♡Mr. L0stík♡OP13mo ago
I tried use for loop and also foreach loop with list but it end it with same result.
Thinker
Thinker13mo ago
You can't await the task twice
♡Mr. L0stík♡
♡Mr. L0stík♡OP13mo ago
so do new delay?
Thinker
Thinker13mo ago
yeah just await Task.Delay(5000);
♡Mr. L0stík♡
♡Mr. L0stík♡OP13mo ago
Ok will it work with for loop also? ok thanks
Shalltear Bloodfallen
isn't periodic timer more suitable?
♡Mr. L0stík♡
♡Mr. L0stík♡OP13mo ago
idk what it is xd
Santi_Peláez
Santi_Peláez13mo ago
Hola, ¿cómo están? ¿Me podrían ayudar con un problema que tengo en un proyecto porfa?
Want results from more Discord servers?
Add your server