Setting control to dock fill when you have a menustrip

  • Thread starter Thread starter Rotsey
  • Start date Start date
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
 
Thanks Marc but that's what I did, great minds think alike.

You didn't read the previous posts.
 
Back
Top