i want to display please wait message while running in c#.Iam tried to display the message, but it not display.
I put the code
label.text="Please wait....";
it display after the program running. Iwant to disply this message between the running
Code sample below
label.text="Please wait....";
string bakup = "BACKUP DATABASE " + myCurDbName + " TO DISK='C:\\temp\\" + myCurDbName + ".bak" + "'";
myDbTask.ExecuteNonQuery(bakup);
Application is Windows based, not web
Loading
Sam HobbsPosted Apr 16, 2011, 6:34 PM
You can do all that in the main form without a thread but that won't look professional.
If you show the other form using ShowDialog instead of Show then the main form cannot be used until the other form is closed, and I assume that you do want to do that.
Suthish NairPosted Apr 16, 2011, 5:57 AM
Wil YoumansPosted Apr 16, 2011, 3:28 AM
FroglegPosted Apr 16, 2011, 2:54 AM
label.Text = ""Please wait...";