0

For examle, I want to change text in the textBox from the method of the other class. How should I do it?

Kamerer
  • 77
  • 1
  • 1
  • 7

1 Answers1

2

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: WinForms interthread modification

Community
  • 1
  • 1
Richard
  • 106,783
  • 21
  • 203
  • 265