Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / desktop / WinForms

Wait progress bar for long running UI operations

0.00/5 (No votes)
2 Oct 2011CPOL 11.8K  
You can use BackgroundWorker to do the work and report the progress using:private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e){ this.progressBar1.Value = e.ProgressPercentage;}
You can use BackgroundWorker to do the work and report the progress using:

C#
private void backgroundWorker1_ProgressChanged(object sender,
    ProgressChangedEventArgs e)
{
    this.progressBar1.Value = e.ProgressPercentage;
}

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)