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

Posted by Poster under C# on 1/7/2009 | Views : 15210 | Status : [Member] | Replies : 1
While working on my desktop application, I am getting following error.

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

What may be the solution?




Responses

Posted by: Poster on: 1/7/2009 [Member] Starter

Up
0
Down
Got the answer.

This generally happens when you are not checking for BeginInvoke. To know more about BeginInvoke, see following article

http://bytes.com/groups/net-c/735861-about-begininvoke-threadpool-threading

http://www.codeproject.com/KB/cs/begininvoke.aspx

http://www.bokebb.com/dev/english/1936/posts/193610187.shtml

Thanks

Poster, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response