C# FlowLayoutPanel 滚动条上未检测到 MouseMove 事件
我有一个 FlowLayoutPanel 且 AutoScroll = true 当滚动条可见时,我需要检测鼠标在滚动条上的移动。
FlowLayoutPanel 的 MouseMove 事件不捕获与滚动条相关的事件。
有什么办法可以钩住滚动条的鼠标移动吗?
I have a FlowLayoutPanel with AutoScroll = true
I need to detect the movement of the mouse on the scrollbar when the scrollbar is visible.
The MouseMove event of the FlowLayoutPanel does not capture events pertaining to the scrollbar.
Is there any way to hook on to the mouse move of the scrollbar?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我尝试了这个(在 LINQPAD 中),看起来当鼠标位于滚动条上时 MouseMoveEvent 不会引发。
这些是 ScrollBar.MouseMove 事件,但我们无法直接使用。
等我看看是否有任何解决方法
I tried this(in LINQPAD) and looks like when mouse is on scrollbar MouseMoveEvent is not raised.
These's ScrollBar.MouseMove event but its not available for direct use by us.
Wait while i see if there is any wokaround