Hi there,
I have autoscroll enabled BUT I can't have horizontal scrollbars appear. Can anyone please help me to only activate verticle scrollbars on the form with Autoscroll? Thank you :) Any help/suggestions will be much appreciated.
Thanks jase
Hi there,
I have autoscroll enabled BUT I can't have horizontal scrollbars appear. Can anyone please help me to only activate verticle scrollbars on the form with Autoscroll? Thank you :) Any help/suggestions will be much appreciated.
Thanks jase
Form.HorizontalScroll.Enabled = false;
Should get rid of it.
Interesting, looks like I was right when I said should get rid of it. Searching around it looks like this is a known and unfixed bug in Winforms. This page implies that there may be some way to do it if you don't mind pinvoking some unmanaged code in user32, but it looks like the best bet is simply to ensure that all your controls fit inside the form width (by docking or anchoring them) since the scrollbars are added as required.
Sorry for misleading you.