65.9K
CodeProject is changing. Read more.
Home

Wait progress bar for long running UI operations

emptyStarIconemptyStarIconemptyStarIconemptyStarIconemptyStarIcon

0/5 (0 vote)

Oct 7, 2011

CPOL
viewsIcon

9704

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...

The background method is probably the most prefered method, but I've found this one is very easy to implement, and its 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 works well in a small image conversion program i wrote.