This is regarding of MDI Forms
I have created MDI Form called "mainform" and another two Form respectively "Form1" and "Form2". my requirement is to display the Form2 within the mainform by clicking checkbox that is placed in Form1 . how do i do this ?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Jan 24, 2014, 8:35 AM EST
If you want to close Form1 when you display Form2, then just call : this.Close().
Biswa Pujarini MohapatraRank #465 · 5.4K reputationPosted Jan 24, 2014, 7:20 AM EST
Form2 childForm = new Form2();
childForm.MdiParent = this;
childForm.Show()
asela nuwan15 reputationPosted Jan 24, 2014, 7:50 AM EST
asela nuwan15 reputationPosted Jan 24, 2014, 7:18 PM EST