Connecting Tech Pros Worldwide Forums | Help | Site Map

AutoSize Panel (Vertical only)

Nathan Laff
Guest
 
Posts: n/a
#1: Apr 9 '07
I have a panel that I want to AutoSize with an AutoSize mode of
GrowAndShrink, but I only want it to autosize vertically. Reason being I
have anchors set up to a usercontrol which can resize.

Any idea on how to accomplish that?


Nathan Laff
Guest
 
Posts: n/a
#2: Apr 9 '07

re: AutoSize Panel (Vertical only)


Actually, I think it's the userControl I need to apply this logic to.

so the UserControl hosts a panel, when that panel grows or shrinks, i need
to resize the userControl vertically. setting autosize to true on the
usercontrol won't work because i dock the userControl to the top of the
form, and it's contents only display the fixed width.


"Nathan Laff" <rev23dev@hotmail.comwrote in message
news:372F7206-A1F3-4D82-955F-E7BCECC9DA51@microsoft.com...
Quote:
>I have a panel that I want to AutoSize with an AutoSize mode of
>GrowAndShrink, but I only want it to autosize vertically. Reason being I
>have anchors set up to a usercontrol which can resize.
>
Any idea on how to accomplish that?
Closed Thread


Similar C# / C Sharp bytes