Waiting Message in Window Application using C#

When you need to print a wait message while a process ig in progress use this code.

private void btn1_Click(object sender, EventArgs e)

{

     label1.Text = "Work is in Progress...Do not close the application!!!";

     Application.DoEvents();

    // your Process is goes here

    label1.Text = "Work has been  Completed!!!";

}

Ebook Download
View all
Learn
View all