Cross-thread Winforms control editing

Posted by Motig on Stack Overflow See other posts from Stack Overflow or by Motig
Published on 2010-04-01T19:09:18Z Indexed on 2010/04/01 19:13 UTC
Read the original article Hit count: 541

Filed under:
|
|

Hey, how can I edit the text in a windows form element if the code that is editing the text 'belongs' to a seperate thread from the one that contains the windows form? I get the exception:

Cross-thread operation not valid: Control 'textBox1' accessed from a thread other than the thread it was created on.

Thank you.

© Stack Overflow or respective owner

Related posts about threading

Related posts about c#