I have a background worker running a long database task. i want to show the progress bar while the task is running. Somehow the background worker won\'t report the progres
Progress must be sent from within the DoWork event by calling the ReportProgress method on the BackgroundWorker. In your case, you can't report any progress because all of the work is being done outside of the DoWork function. You can only report progress before and after the call to getdate(), but not during the call since the BackgroundWorker thread is busy.