I am trying to make a Panel
scrollable, but only vertically (so AutoScroll
won't work because the child controls go past the left edge and must).
So how is this done?
A vertical or horizontal bar commonly on the far right or bottom of a window that lets you move the window viewing area up, down, left, or right.
Try this instead for 'only' scrolling vertical.
(auto scroll needs to be false before it will accept changes)
mypanel.AutoScroll = false; mypanel.HorizontalScroll.Enabled = false; mypanel.HorizontalScroll.Visible = false; mypanel.HorizontalScroll.Maximum = 0; mypanel.AutoScroll = true;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With