-1

after entering some text in textbox control (C# window application)and pressing button it will raise two events one is button click and another is my application defined event. im not able to catch the event. and im getting this error. how to solve this ... pls help..

Axarydax
  • 16,353
  • 21
  • 92
  • 151
manoj
  • 1
  • 1
  • 1
  • possible duplicate of http://stackoverflow.com/questions/142003/cross-thread-operation-not-valid-control-accessed-from-a-thread-other-than-the-t – Oliver May 05 '10 at 10:33

1 Answers1

3

Take a look at this thread. I hope it helps you out:

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

Community
  • 1
  • 1
MUG4N
  • 19,377
  • 11
  • 56
  • 83
  • I hope a short and simple tutorial will also do: http://www.codeproject.com/KB/cs/GenericCrossThread.aspx – MUG4N May 05 '10 at 12:57