C backgroundworker progress bar not updating

Rated 3.90/5 based on 878 customer reviews

The Do Work will be executed on a different thread, so I'm surprised you haven't gotten an a cross-thread exception.

c backgroundworker progress bar not updating-36

c backgroundworker progress bar not updating-74

c backgroundworker progress bar not updating-70

c backgroundworker progress bar not updating-6

Edit: check out the MSDN on Background Worker: has example uses.To fix this you need to run your loading function in a new thread and make callbacks to the UI or main thread updating the progressbar.This is not so simple if you don't know multi-threading and needs invocations from the UI back to your thread to avoid that the UI uses data that is already outdated or still being used by the other thread.This post has been edited by Curtis Rutland: 16 June 2011 - PM method accepts an object parameter.This how you pass the list to the background worker.

Leave a Reply