foreach (Form childForm in MdiChildren)
{
childForm.Close();
}
Form2 obj= new Form2();
obj.MdiParent = this;
obj.Show();
Interviews4 answers
How to open Child window in parent window,C# windows Application
4 Answers
Sudhakar ChaudharyPosted Mar 19, 2012, 1:26 PM EDT
Use this code in VB.NET
Child frm = new Child();
frm.MdiParent = this;
frm.Show();
piyush sardharaPosted Mar 13, 2012, 3:13 AM EDT
if you opening the child form on button click event FROM parent window....
then..... use following Code Snippet......
then..... use following Code Snippet......
// Create a new form to represent the child form
frmChild frm = new frmChild();
// Make the new form a child form. frm.MdiParent = this;
// Display the child form. frm.Show();
Mayur DighePosted Mar 11, 2012, 8:10 AM EDT
from parent
child.show(this);
DawidPosted Mar 8, 2012, 1:22 PM EST

