How to detect when the scrollbars appear? C#

ぃ、小莉子 提交于 2021-01-27 20:00:23

问题


Is there a way or an event to solve this? well specifically its for a flow layout panel


回答1:


If you're using a FlowLayoutPanel, you could check whether the Bottom property of the last control in the panel is more than the panel's height.

Alternatively, try checking VerticalScroll.Visible (I haven't tried that, but it shoud do what you're looking for)



来源:https://stackoverflow.com/questions/1522995/how-to-detect-when-the-scrollbars-appear-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!