How do I set my panel so it will only scroll horizontal? I have tried:
this.VerticalScroll.Enabled = false;
But it doesn't work.
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;
you can try
panel.AutoScroll = true;
panel.HorizontalScroll.Enabled=false;
panel.HorizontalScroll.Visible = false;
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