How to use Progress Bar in c# ?
Sir I want to use progress bar when data is inserting inside database or during update of records. so during this situations I want to show progress bar.So please help me by giving example.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Aug 19, 2012, 9:01 AM EDT
Check out this article (and the previous one it links to) which shows how to use a ProgressBar and BackgroundWorker to monitor fetching records from a database. The same principle will apply to insertions or updates in that the Maximum property of the ProgressBar should be set to the number of records affected:
http://www.c-sharpcorner.com/UploadFile/deepak.sharma00/how-to-show-progress-of-fetching-database-records-using-a-pr/