Q: MDI Child Forms in a DLL, how to bring em up in the MDI Form?

  • Thread starter Visual Systems AB \(Martin Arvidsson\)
  • Start date
V

Visual Systems AB \(Martin Arvidsson\)

Hi!

I have created a couple of MDI Child forms, splitted them up and compiled
them into different DLL's, for that reason that i want to update separate
parts of the program and also limit what a customer can run.

Now, how do i start one of those forms from the DLL and let the MDI Form get
the handle of the MDI Child window?

Regards

Martin Arvidsson
 
N

Nicholas Paldino [.NET/C# MVP]

Martin,

From the MDI parent, you can load the assembly, along with the type from
the assembly, and then create an instance (cast down to Form) using the
static CreateInstance method on the Activator class. Once you have that,
you can cet the IsMdiChild property on the form to true, and then add the
form to the children of your app.

Hope this helps.
 

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