How to detect : scrolling - up or down?

后端 未结 3 1915
独厮守ぢ
独厮守ぢ 2020-12-20 23:57

System.Windows.Forms.Form has only one scroll event-Scroll, but it is necessary to recognize scrolling up and scrollin

3条回答
  •  猫巷女王i
    2020-12-21 00:36

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

提交回复
热议问题