I have made use of the MDI, I realized that the children forms called from the parent form is minimized together with main form and however when i call a new form from a children form, a design problem which this new form can't be minimized together with main may appear How to make their minimize and maximize properties to be consistent Thank you.

Minimize Form Together with Parent Form
Nayan Paregi
HSBF Lewe
private void toolStripButton2_Click(object sender, EventArgs e) {
Form2 f2 = new Form2();
f2.Show(this);
}
If you call this from an MDI child window, pass "this.MdiParent" instead.
billb59
form2.MdiParent = Main_Windows
form2.Show()
GroZZleR
parent form contain maun can generate a child form
namespace WindowsApplication2
{
public partial class MDI_M : Form
{
public MDI_M()
{
InitializeComponent();
}
private void addToolStripMenuItem1_Click(object sender, EventArgs e)
{
Child cd = new Child();
cd.MdiParent = this;
cd.Show();
}
}
}
and the child form contain one button while click can pop another child form:
namespace WindowsApplication2
{
public partial class Child : Form
{
public Child()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Child cd2 = new Child();
cd2.MdiParent = this.MdiParent;
cd2.Show();
}
}
}
ved_30
DisplayForm.Show(Me.MdiParent)
Me.Close()