MDI support in C#

G

Guest

Hi,

exist in C# any support for MDI applications to notify the views (MDIChild)
automatically like in C++ MFC?

Thanks
Christian
 
N

Nicholas Paldino [.NET/C# MVP]

Christian,

What kind of notification were you thinking of? I don't think that
there is any support out of the box, but adding it isn't too hard, if you
use a factory pattern to generate the MDI child forms.

Hope this helps.
 
J

Jon Davis

Yes. Look at IsMDIContainer property on a form.

Where Form1 has IsMDIContainer property set to True, and Form2 is a normal
form, the following code should work.

private void Form1_Load(object sender, EventArgs e)

{

Form2 frm2 = new Form2();

frm2.MdiParent = this;

frm2.Show();

}
 

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