1
Reply

Console.WriteLine every x seconds?

Seb

Seb

Jan 6 2010 6:50 PM
2.6k
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)