I have a windows forms dialog, where a longer operation is running (asynchron) within a backgroundworker job. During this operation I want to change some values on the form (labels,…). But when the backgroundworker tries to change something on the form, I get the error “Cross-thread operation not valid“! How can this problem be solved ?
I have a windows forms dialog, where a longer operation is running (asynchron) within
Share
Call the
ReportProgressmethod from the worker, and handle theProgressChangedto update the current state.