when querying a database, I wish to display the progressbar and its percentage (10% interval till 100%) of completion.
How do I implement it? I refer to
http://www.c-sharpcorner.com/UploadFile/deepak.sharma00/how-to-show-progress-of-fetching-database-records-using-a-pr/
but it seems to me that I should not base the progressbar1.Maximum on the total records.
I think my code in the percentage progress is wrong too, what should it be based on?
code is as attached.
thanks.
Attachment: code.zip