如何检测:滚动 - 向上还是向下? [英] How to detect : scrolling - up or down?

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

问题描述

System.Windows.Forms.Form只有一个滚动事件 - 滚动,但有必要识别 向上滚动 向下滚动 。你能告诉我怎么做吗?

System.Windows.Forms.Form has only one scroll event-Scroll, but it is necessary to recognize scrolling up and scrolling down.Could you tell me,how to do this?

推荐答案

使用传递的System.Windows.Forms.ScrollEventArgs参数'OldValue和NewValue属性来检测滚动方向。

Use the passed System.Windows.Forms.ScrollEventArgs arguments' OldValue and NewValue properties to detect the scroll direction.

这篇关于如何检测:滚动 - 向上还是向下?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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