0
flowLayoutPanel1.AutoScroll = true;
flowLayoutPanel1.VerticalScroll.Enabled = true;
flowLayoutPanel1.HorizontalScroll.Enabled = false;
flowLayoutPanel1.HorizontalScroll.Visible = false;

The above code is not working. How to disable HorizontalScroll ?

Wesley Lomax
  • 2,067
  • 2
  • 20
  • 34
Captain
  • 113
  • 2
  • 9

1 Answers1

1

Did you try this

int vertScrollWidth = SystemInformation.VerticalScrollBarWidth;

flowlayoutPanel1.Padding = new Padding(0, 0, vertScrollWidth, 0);

Or set

flowDirection=leftToRight
flowlayoutPanel.HorizontalScroll.Visible = false
wrapContents = true
Community
  • 1
  • 1
Litisqe Kumar
  • 2,512
  • 4
  • 26
  • 40