如何检测滚动条何时出现?C# [英] How to detect when the scrollbars appear? C#

查看:62
本文介绍了如何检测滚动条何时出现?C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法或事件来解决这个问题?专门用于流布局面板

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

推荐答案

如果您使用的是 FlowLayoutPanel,您可以检查面板中最后一个控件的 Bottom 属性是否大于面板的高度.

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.

或者,尝试检查 VerticalScroll.Visible(我还没有尝试过,但它应该可以满足您的要求)

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

这篇关于如何检测滚动条何时出现?C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆