For examle, I want to change text in the textBox from the method of the other class. How should I do it?
+2
A:
You can only access WinForm controls from the thread that created them (the same is true in WPF). But there is a mechanism inbuilt to help you: Invoke
.
See this question for examples: http://stackoverflow.com/questions/1110458/winforms-interthread-modification
Richard
2010-05-05 09:21:16
+1 OOPS! deleted mine:)
Veer
2010-05-05 09:27:17