469,962 Members | 2,281 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,962 developers. It's quick & easy.

AutoSize Panel (Vertical only)

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?

Apr 9 '07 #1
1 7380
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" <re******@hotmail.comwrote in message
news:37**********************************@microsof t.com...
>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?
Apr 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Nathan | last post: by
2 posts views Thread by YYZ | last post: by
8 posts views Thread by Jordi Rico | last post: by
12 posts views Thread by Peter | last post: by
reply views Thread by Nathan Laff | last post: by
3 posts views Thread by Gandalf | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.