O
orellana
I have a RichTextBox that I'm trying to change based on incoming
packets from the network. I get the following error when the
RichTextBox is changed inside my server thread:
"An unhandled exception of type 'System.InvalidOperationException'
occurred in System.Windows.Forms.dll
Additional information: Cross-thread operation not valid: Control
'CapturedBox' accessed from a thread other than the thread it was
created on."
I understand the error message. It happens inside my thread that
captures all requests from clients (UDP). Is there a quick and easy
way to get around it?
Thanks
packets from the network. I get the following error when the
RichTextBox is changed inside my server thread:
"An unhandled exception of type 'System.InvalidOperationException'
occurred in System.Windows.Forms.dll
Additional information: Cross-thread operation not valid: Control
'CapturedBox' accessed from a thread other than the thread it was
created on."
I understand the error message. It happens inside my thread that
captures all requests from clients (UDP). Is there a quick and easy
way to get around it?
Thanks