Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable horizontal scroll bar in FlowLayoutPanel?

Tags:

I have a FlowLayoutPanel and there are multiple controls on it. I only want to scroll in vertical direction. But when I set AutoScroll = true, I got both Vertical and Horizontal Scroll bars. How could I disable the horizontal scroll bar and only keep the vertical scroll bar working?

like image 903
spspli Avatar asked Apr 05 '11 18:04

spspli


People also ask

How do I stop the horizontal scroll bar?

To hide the horizontal scrollbar and prevent horizontal scrolling, use overflow-x: hidden: HTML. CSS.

How do I stop horizontal scrolling in web design?

You can also set the overflow-x CSS property to hidden, which prevents child content from wrapping within its container but turns off sideways scrolling. Another solution is to set the width of child elements to 100%.

How do I get rid of the horizontal scroll bar in notepad?

In the "View" menu make sure the "Word Wrap" option is ticked. Then the line will never extend past the edge of the screen.


1 Answers

  • Set AutoScroll to true
  • Set WrapContents to false.
  • Make sure the size is wider than the controls' width plus the width of a vertical scrollbar.

The horizontal scrollbar should disappear. If it doesn't, please provide some more information.

like image 125
user664939 Avatar answered Sep 18 '22 22:09

user664939