Dec 17, 2011 07:46 AM
(This post was last modified: Dec 17, 2011 07:47 AM by alonalon.)
How can my background worker effect my WindowsForm control?
I have a WindowsForm and a background worker, I give the background worker a task and in the end of it needs to change a text of a control in my WindowsForm(I'v set the control to "public").
I get this error:
"Cross-thread operation not valid: Control 'Name1' accessed from a thread other than the thread it was created on."
I have a WindowsForm and a background worker, I give the background worker a task and in the end of it needs to change a text of a control in my WindowsForm(I'v set the control to "public").
I get this error:
"Cross-thread operation not valid: Control 'Name1' accessed from a thread other than the thread it was created on."


