M
Marc Gravell
Can I suggest a pragmatic solution here?
When you have your main elements (designer or runtime; no difference),
add a Panel to the form, and set that to Dock so that it fits snugly.
This Panel represents the remaining area; now you can add whatever
Controls you want (to the Panel), be they docked, anchored or
floating - they should end up where you want them to.
This approach simply removes a layer of complexity, as the 27 new
Controls don't care about the menu etc - they just care that they
position themselves relative to their container, the Panel. And we
only had to get the Panel right once.
Marc
When you have your main elements (designer or runtime; no difference),
add a Panel to the form, and set that to Dock so that it fits snugly.
This Panel represents the remaining area; now you can add whatever
Controls you want (to the Panel), be they docked, anchored or
floating - they should end up where you want them to.
This approach simply removes a layer of complexity, as the 27 new
Controls don't care about the menu etc - they just care that they
position themselves relative to their container, the Panel. And we
only had to get the Panel right once.
Marc