隐藏FlowLayoutPanel中的滚动条 [英] Hide scroll bar in FlowLayoutPanel
本文介绍了隐藏FlowLayoutPanel中的滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要AutoScroll功能,并且不希望ScrollBars在FlowlayoutPanel中可见。请为此提供解决方案。
MSDN ALERTS
I need AutoScroll functionality and dont want ScrollBars as visible in FlowlayoutPanel. Please provide solution for this.
MSDN ALERTS
推荐答案
可能将面板放在另一个面板中,以便垂直滚动条仍然存在,但不可见。也可以通过编程方式完成(在
加载事件内):
flowLayoutPanel1.Parent = panel1;
flowLayoutPanel1.Location = new Point( 0, 0 );
flowLayoutPanel1.Width = panel1.ClientSize.Width + SystemInformation.VerticalScrollBarWidth;
flowLayoutPanel1.Height = panel1.ClientRectangle.Height;
这篇关于隐藏FlowLayoutPanel中的滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文