control in MDI parent Problem

iknowyou

Active member
Joined
Jun 14, 2011
Messages
37
Programming Experience
1-3
I put a button in my MDI Parent Form and then when I call my form inside the MDI form, the button is always on top of my Form1.
Please help me how to fix this. Thanks.

VB.NET:
myForm= New Form1(idNumber)
        myForm.MdiParent = Me

        myForm.Show()
 
There is no fix because it's not broken. That's how MDI works. If you want to place controls on an MDI parent form then you don't try to put them in the same area that the child forms occupy. You add a Panel to the parent form and Dock it to one of the sides, then add your controls to that. The child forms will occupy the area not occupied by the Panel.
 
Back
Top