Designing Child Form Layout in VB.NET
Posted on 2011-10-15
I have an MDI Parent form, in which I dock multiple child forms which contain a custom menu strip, TreeView, etc. In the MDI Parent form_loading event I instantiate two forms and dock them to the left and top of the Parent form, respectively. When I instantiate a third form and set it to fill the Parent, on load it behaves correctly and fills the remaining space. However, when the menu strip receives focus, the third child form slides underneath the menu strip as if the menu strip form executed a Me.BringToFront method.
I have coded methods to counteract any form going forward or backward upon getting / loosing, but the problem remains. It's driving me crazy. Any help is greatly appreciated.