Santosh More
How to open Child window in parent window,C# windows Application
Posted by Santosh More in .Net | Windows Forms on Feb 13, 2012
0
Do you know the answer for this question? Post it below.
Guest

            foreach (Form childForm in MdiChildren)
            {
                childForm.Close();
            }
            Form2 obj= new Form2();
            obj.MdiParent = this;
            obj.Show();

Posted by Sudhakar Chaudhary on Mar 19, 2012

Use this code in VB.NET

  Child frm = new Child();
   frm.MdiParent = this;
   frm.Show();

Posted by piyush sardhara on Mar 13, 2012

if you opening the child form on button click event FROM parent window....

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();


Posted by Mayur Dighe on Mar 11, 2012

from parent

child.show(this);

Posted by Dawid on Mar 08, 2012
Sponsored by
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
Sponsored by
Team Foundation Server Hosting
Become a Sponsor
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | REPORT ABUSE © 2011 C# Corner. All contents are copyright of their authors.