Annoying Dynamically loaded DLL form

  • Thread starter Ayo Ogundahunsi
  • 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 :)
 
C

Chris Dunaway

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top