隐藏FlowLayoutPanel的水平滚动条

时间:2013-12-04 01:13:33

标签: c# winforms

我有一个FlowLayoutPanel,其中我添加了一些控件,这是我的属性

FlowLayoutPanel.AutoScroll = true;
FlowLayoutPanel.FlowDirection = FlowDirection.TopDown;
FlowLayoutPanel.WrapContents = false;

现在我想只有垂直滚动条可见,无论添加到面板的控件的大小如此,所以我在stackoverflow尝试了很多解决方案,没有运气也试过

FlowLayoutPanel.HorizontalScroll.Visible = false;  

但水平滚动条仍然可见。

我尝试过的解决方案

still Not able to Hide Horizontal Scrollbar of FlowLayoutPanel in WinForms Apps

How to disable horizontal scroll bar in FlowLayoutPanel?

0 个答案:

没有答案