1
Answer

Console.WriteLine every x seconds?

Photo of Seb

Seb

15y
3.1k
1
Hi all,
I'm developing a Windows Forms Application on vb.net.

I need to perform an action every x seconds. It is using a 3rd party library, so it is not *actually* a console.writeline, but for the sake of argument I wrote that.
There will be phrases passing through that will need to be said.
For example, 3 separate phrases will be sent to the 'console', but the application needs to stop and WAIT 5 seconds before going on to the next one.
I can't use System.Threading.Thread.Sleep(x) because it processes other event handlers which will not process while it 'sleeps'.
I have a timer already, and I'm enabling it, but for some reason, it's just not waiting... I have no idea what to do...

Thanks

Answers (1)