VB.NET Thread issue
Posted on 2011-03-12
When a thread I started finishes, I raises an event back to the main process that the thread has completed. One of the things I want to do in this call back is add an entry to a list box on the main form, but when the event happens I get this error:
"Cross-thread operation not valid: Control 'lbStatus' accessed from a thread other than the thread it was created on."
How can I add an entry to this list box from the finishing thread?