Setting control to dock fill when you have a menustrip

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
 
R

Rotsey

Thanks Marc but that's what I did, great minds think alike.

You didn't read the previous posts.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top