Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Only horizontal scrolling in a panel

How do I set my panel so it will only scroll horizontal? I have tried:

this.VerticalScroll.Enabled = false;

But it doesn't work.

like image 394
Klaasvaak Avatar asked Feb 21 '23 08:02

Klaasvaak


2 Answers

Try this instead for 'only' scrolling horizontal.
(auto scroll needs to be false b4 it will accept changes)

mypanel.AutoScroll = false;
mypanel.VerticalScroll.Enabled = false;
mypanel.VerticalScroll.Visible = false;
mypanel.VerticalScroll.Maximum = 0;
mypanel.AutoScroll = true;
like image 94
kamgman Avatar answered Mar 02 '23 01:03

kamgman


you can try

panel.AutoScroll = true;
panel.HorizontalScroll.Enabled=false;
panel.HorizontalScroll.Visible = false;
like image 40
CuriousMind Avatar answered Mar 02 '23 00:03

CuriousMind