How do you fire events from a multithreaded class?
Posted on 2009-04-01
I currently have a class that spawns different threads. When certain things in those threads happen, I want it to fire off an event in the thread of the original "creator" of the class. For instance, if the Form creates the object, all events should go to the Form's thread so it can make appropriate changes.
What I'm finding is that no matter what I do in the threads, I can NOT get the events to fire in the form without causing an error that the form's controls were created in a different thread. Really need some help here, with a very clear explanation.