Mdi Application Need Help

murtaza1119

New member
Joined
Oct 19, 2005
Messages
2
Programming Experience
Beginner
hi!
i am new vb.net and i am having a problem,will plz any one can help me my problem is that i have an MDI form and it has a child form which contains a button when i click on that button then another form will open,but the problem is that this another form open as a single form i mean its not the child form how can i do this can any one plz help me on this i will be really thankful to him.
 
When you want to show up the another form from child form just add these lines to the button:
I'm assuming that your form is named formChild2 !?
Button event:
VB.NET:
Expand Collapse Copy
Dim newForm as form = New formChild2
newForm.MDIParent = Me.MDIParent 'this is the part you missed
newForm.Show()

Regards ;)
 
Back
Top