Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
1. Wait progress bar for long running UI operations
Updated: 20 Sep 2011
Showing progress bar while performing time consume processes.
C#, WinForm
|
|
|
|
2. Wait progress bar for long running UI operations
Updated: 2 Oct 2011
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;}
C#, WinForm
|
|
|
|
3. Wait progress bar for long running UI operations
Updated: 7 Oct 2011
The background method is probably the most preferred method, but I've found this one is very easy to implement, and it's just one short line:BeginInvoke(new Action(() => progressBar1.Increment(1)));Place this in your worker thread to report to the UI. Not sure how "good" this is, but it...
C#, WinForm
|
|
|
|