Wait window in a windows application
Posted
by Vinodtiru
on Stack Overflow
See other posts from Stack Overflow
or by Vinodtiru
Published on 2008-10-08T07:20:09Z
Indexed on
2010/06/14
14:32 UTC
Read the original article
Hit count: 179
I basically need to show a wait window to the user. For this i have put two seperate window forms in the application. the first form is the main form with a button. The second one is a empty one with just a label text. On click of the button in Form1 i do the below
Form2 f = new Form2();
f.Show();
Thread.Sleep(2000);
f.Close();
My idea here is to show the wait window to the user for 2 second. But when i do this the Form 2 is not completely loaded because of which the label in it is blank. Please let me know your inputs on this.
© Stack Overflow or respective owner