Seb

Seb

  • NA
  • 1
  • 0

Console.WriteLine every x seconds?

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