Annoying Dynamically loaded DLL form

  • Thread starter Thread starter Ayo Ogundahunsi
  • Start date Start date
A

Ayo Ogundahunsi

I am dynamically loading a DLL and opening a form/user control using
Reflection. This loads a form (3rd Party) which is created right outside my
Application. Is there any way i can force/restrict this new form to stay
within the bounds of my MDI so that it doesnt look like a seperate
application altogether?

Any help appreciated.

Thanks,
Ayo.

Note: Intellisense doesnt show properties like Owner or MdiParent so i have
no idea what base library this form was created from :)
 
Ayo said:
I am dynamically loading a DLL and opening a form/user control using
Reflection. This loads a form (3rd Party) which is created right outside my
Application. Is there any way i can force/restrict this new form to stay
within the bounds of my MDI so that it doesnt look like a seperate
application altogether?

The only thing I can think to try is to use FindForm API to get the
window handle of the form and the SetParent API to set it's parent.
Search the groups and you should find some examples.

Chris
 
Back
Top