Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to resize panels to fit all controls

Status
Not open for further replies.

gib99

Programmer
Mar 23, 2012
51
0
0
CA
Hello,

I'm thinking there must be a way to tell a panel to resize to exactly the size required for all its controls to be visible. So if it's too big, it shrinks to fit all the controls snugly, and if it's too small, it grows so that all the controls can be seen.

How can I do this?
 
Yes, it's called the AutoSize property.

This works in conjunction with the AutoSizeMode property, and will only shrink to fit if it is set the GrowAndShrink.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top