I have a project that includes a main form that is an MDI parent. Other projects will create libraries that contain forms to be displayed in the parent form. Each child form will be in it's own thread and the parent form will control the thread.
The problem is if I don't use threading, I can set the parent property of the child form but then I can't stop or start the child form. If I use threading, I can start and stop the child form but I can't set the parent property of the child form to the parent form.
I've been able to hack it together but it requires that the libraries make thread safe calls to the parent form whenever they need to update the child form. The idea is that the libraries could be created to just plug-in to the parent process or could stand alone if needed.
Any ideas? Thanks.
The problem is if I don't use threading, I can set the parent property of the child form but then I can't stop or start the child form. If I use threading, I can start and stop the child form but I can't set the parent property of the child form to the parent form.
I've been able to hack it together but it requires that the libraries make thread safe calls to the parent form whenever they need to update the child form. The idea is that the libraries could be created to just plug-in to the parent process or could stand alone if needed.
Any ideas? Thanks.