Threading - Merging a spawned thread with the main thread

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm having a major problem with threads.

I have a main application that dynamically loads plugins. One of the
plugins receives SMS messages in a seperate thread. When an SMS comes in I
need to display an MDI Child form within the Main Application workspace. The
code bombs out when I attempt to assign the MDIParent of the child form to
the Main Form (in the main thread). Some how I need to merge the spawned
thread with the main thread before creating the child form.... any ideas?

I know Invoke() can be used for GUI controls, but I can't use this as I'm
creating the form from a class that is not a Form..!?!?

Thanks


Threading - Merging a spawned thread with the main thread
 
Neds said:
I'm having a major problem with threads.

I have a main application that dynamically loads plugins. One of the
plugins receives SMS messages in a seperate thread. When an SMS comes in
I
need to display an MDI Child form within the Main Application workspace.
The code bombs out when I attempt to assign the MDIParent of the child
form to
the Main Form (in the main thread). Some how I need to merge the spawned
thread with the main thread before creating the child form.... any ideas?

..Join() ?
 
Back
Top