.Net 2.0 question.
I've got all my heavy operations cranking in a worker thread but I want to display occasional updates to the user through a progress bar in the status strip on my form. The problem is that updating the progress bar from the WorkerThread's update event throws an unsafe update exception becuase the owner of the progress bar is someone other than the thread it is being used from.
I found this code to safely update a control across threads, but the status strip version of the progress bar doesn't have the InvokeRequired method. What's another method for safely updating across threads or am I going about this all wrong?
I've got all my heavy operations cranking in a worker thread but I want to display occasional updates to the user through a progress bar in the status strip on my form. The problem is that updating the progress bar from the WorkerThread's update event throws an unsafe update exception becuase the owner of the progress bar is someone other than the thread it is being used from.
I found this code to safely update a control across threads, but the status strip version of the progress bar doesn't have the InvokeRequired method. What's another method for safely updating across threads or am I going about this all wrong?