C# Sleep for 500 milliseconds

Posted by ikurtz on Stack Overflow See other posts from Stack Overflow or by ikurtz
Published on 2010-03-27T21:12:30Z Indexed on 2010/03/27 21:23 UTC
Read the original article Hit count: 768

Filed under:
|
|

could you please tell me how do i go about pausing my program for 500 milliseconds and then continue?

i read thread.sleep(50) is not good as it holds up the GUI thread.

using a timer it fires a callback ..

i just want to wait 500 and then continue to the next statement.

please advise.

EDIT: i need to display a status bar message for 500 and then update the message with a different one. sorry i meant 500 not 50.

© Stack Overflow or respective owner

Related posts about c#

Related posts about timer