[RESOLVED] [2008] Backgroundworker progress bar problem
Hello,
Got a bit of a weird problem with a progress bar.
I'm using a backgroundworker, which calls a "Process" function in a different class.
The function goes about its business, and sends an update back to the form displaying the progress bar.
What I'm finding is that its doing everything right, except update the progress and a label on the form.
I've put breakpoints in to check the values of variables being sent to the form, and they're correct. I've also checked the value/maximum of the progress bar during the same break as I step through, and they're being set correctly .... they're just not displaying their updated status. I've tried refresh and application.doevents, to no avail. When the backgroundworker is complete, the values of the progress bar/label are as if I've never touched them! When the worker is complete, the Close button is enabled, so I know its finished.
Anybody got any pointers/thoughts on this because I've been battling with this for a day and a half so far. I'm using the same technique as I've used elsewhere in the app to do similar backgroundworker progress updates, but this one refuses to work properly.
Re: [2008] Backgroundworker progress bar problem
We can tell you how to use a BackgroundWorker but presumably you at least believe you already know that, sop what's the point? If you want us to tell you what's wrong with your code then we'd have to see your code.
Re: [2008] Backgroundworker progress bar problem
Oops! I've noticed the problem. Was just about to copy/paste sections of code when it was obvious! Think I'd been looking at it for too long!
Thanks for replying.