Click here to Skip to main content
Click here to Skip to main content

Wait progress bar for long running UI operations

By , 7 Oct 2011
 
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.

License

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

About the Author

Bruce Lee Harrison
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralSo you will end up waiting if process completes or showing u...memberkris44427 Oct '11 - 0:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 7 Oct 2011
Article Copyright 2011 by Bruce Lee Harrison
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid