Hi all,
Am new to vb.net and recently was working with MDI parents and childs but got problems in attaching the child forms to the parent.could anyone help me out please.include code.
MDI parent and childs in VB.net
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Ankur GuptaRank #1,017 · 1.9K reputationPosted Jun 28, 2010, 3:17 AM EDT
frm.MdiParent = Me
frm.Show
I think this will sove your problem otherwise please explain.......
Vincent Bruce10 reputationPosted Jun 28, 2010, 4:01 AM EDT
But am using menus on MDI parent which when clicked are supposed to show the MDI childs.the problem is where exactly to place the code in order to attach multiple MDI childs.
Ankur GuptaRank #1,017 · 1.9K reputationPosted Jun 28, 2010, 9:24 PM EDT
Dhavall Vadher108 reputationPosted Jul 25, 2010, 10:44 PM EDT
If you mean the you are setting your child form from MDI form's Menu Strip / Menu Item, you should place your code in Menuitem's click event.
child.MdiParent = me
if you are opening your child2 form from another child1 form's button click, you should write your code in child1 form's button click event. it should be like this
child2.MdiParent = child1.MdiParent
Manish TewatiaRank #48 · 31.3K reputationPosted Jul 28, 2010, 3:37 AM EDT
I hope my this article helps you a lot...... Click Here