Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add vertical scroll bar to panel

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?

like image 224
Seth Carnegie Avatar asked May 22 '11 20:05

Seth Carnegie


People also ask

Where is my vertical scroll bar?

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.


1 Answers

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; 
like image 114
kamgman Avatar answered Oct 07 '22 18:10

kamgman