Santosh More
How to open Child window in parent window,C# windows Application
By Santosh More in Windows Forms on Feb 13 2012
  • Sudhakar Chaudhary
    Mar, 2012 19

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

    • 1
  • piyush sardhara
    Mar, 2012 13

    Use this code in VB.NET

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

    • 0
  • Mayur Dighe
    Mar, 2012 11

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


    • 0
  • Dawid
    Mar, 2012 8

    from parent

    child.show(this);

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS