MDI support in C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

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

Thanks
Christian
 
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.
 
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();

}
 
Back
Top