.net - How to solve the "Cross-thread operation not valid" Problem? -


I have a Windows Forms dialog, where a long operation is undergoing a background card (Asynchron) work. During this operation I want to change some values ​​on the form (label, ...). But when the developer tries to make some changes on the form, I get the " cross-thread action is not valid " error! How can this problem be solved?

Call the report progress method from the worker, and update the current status To change by changing progress .


Comments