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.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Aug 19, 2012, 1:01 PM
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/