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

FroglegRank #1,020 · 1.9K reputationPosted Apr 15, 2011, 10:54 PM EDT
label.Text = ""Please wait...";
Wil Youmans25 reputationPosted Apr 15, 2011, 11:28 PM EDT
Suthish NairRank #92 · 22.8K reputationPosted Apr 16, 2011, 1:57 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Apr 16, 2011, 2:34 PM EDT
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.