I've got a few lines of codes for example:
MessageBox.Show("1");
Sleep(1000);
MessageBox.Show("2");
Sleep(1000);
MessageBox.Show("3");
And I want to make a pause of 1 second before continuing to the next code line without using Thread.Sleep
; because it freezes the whole Form and terminates the lines of codes that was supposed to be executed before the sleep code. I don't use message boxes for this, I used just for an example I know it would of work with those.
With the lines I originally use it doesn't work. Is there any other alternative to wait for 1s before continuing running the codes? Thanks.