after i click a menu item in a MDI container i have made a form open inside the MDI container. on
clicking a button in the new form or the MDI container i want a new form (maximised) to open in
the same MDI Container and the previous form to close. the new Form always opens when i try
but the previous form does not close. how do i implement this?
Form2 newMDIChild1 = new Form2();
newMDIChild1.MdiParent = Form1();
newMDIChild1.Show();
Also in any Form if i have a button and on its click if make a new form open, the new form opens
but the old form does not close. i want the old form to close and the new form to be displayed.
how do i do this.
clicking a button in the new form or the MDI container i want a new form (maximised) to open in
the same MDI Container and the previous form to close. the new Form always opens when i try
but the previous form does not close. how do i implement this?
Form2 newMDIChild1 = new Form2();
newMDIChild1.MdiParent = Form1();
newMDIChild1.Show();
Also in any Form if i have a button and on its click if make a new form open, the new form opens
but the old form does not close. i want the old form to close and the new form to be displayed.
how do i do this.