65.9K
CodeProject is changing. Read more.
Home

Wait progress bar for long running UI operations

starIconstarIconstarIconstarIconstarIcon

5.00/5 (1 vote)

Sep 23, 2011

CPOL
viewsIcon

11791

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:
private void backgroundWorker1_ProgressChanged(object sender,
    ProgressChangedEventArgs e)
{
    this.progressBar1.Value = e.ProgressPercentage;
}
Wait progress bar for long running UI operations - CodeProject