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.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Manish TewatiaPosted Jul 28, 2010, 7:37 AM
I hope my this article helps you a lot...... Click Here
Dhavall VadherPosted Jul 26, 2010, 2:44 AM
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
Ankur GuptaPosted Jun 29, 2010, 1:24 AM
Vincent BrucePosted Jun 28, 2010, 8:01 AM
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 GuptaPosted Jun 28, 2010, 7:17 AM
frm.MdiParent = Me
frm.Show
I think this will sove your problem otherwise please explain.......