I am engaged in carving and have come across this problem. The situation is as follows:
I have 4 progress bars in one form, one for loading a file, one for displaying page load status, etc.
I need to control the progress of each ProgressBar from a separate thread.
The problem is that I get an InvalidOperationException which says
Work with cross-streams is invalid: the control "progressBar1" is accessible from the thread, except for the thread on which it was created.
Am I mistaken in this approach, or can someone tell me how to implement this?
multithreading c # winforms
Chandra eskay
source share