Ray's Asp.net Blog
Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
Pages
Event registration app with QR/Paypal
Home
Thursday, December 11, 2014
What is the simplest way to solve "Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on"
Code Example
Replace
list.Items.Add(status);
with:
this.Invoke((MethodInvoker)delegate
{
//list.Items.Add(status);
});
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment