C# Sleep for 500 milliseconds
问题 Could you please tell me how do I go about pausing my program for 500 milliseconds and then continue? I read Thread.Sleep(500) is not good as it holds up the GUI thread. Using a timer it fires a callback ... I just want to wait 500ms and then continue to the next statement. Please advise. EDIT: I need to display a status bar message for 500ms and then update the message with a different one. Sorry, I meant 500 not 50. EDIT: I do understand what all you have said. but: [I just want to wait