在 WinForm 上完全禁用鼠标滚轮
我必须完全禁用 Windows 窗体上的鼠标滚轮以及其中包含的每个控件,我尝试过使用事件鼠标滚轮,但它无法正常工作:
this.MouseWheel += new MouseEventHandler(Form_MouseWheel);
private void Form_MouseWheel(object sender, MouseEventArgs e) {
((HandledMouseEventArgs)e).Handled = true;
}
How can icompletely disable mousewheel on a windows form and in里面每个控件呢?
I have to completely disable the mouse wheel on a windows form and on every control contained in it, I've tried with the event mouse wheel but it doesn't work correctly:
this.MouseWheel += new MouseEventHandler(Form_MouseWheel);
private void Form_MouseWheel(object sender, MouseEventArgs e) {
((HandledMouseEventArgs)e).Handled = true;
}
How can i completely disable mouse wheel on a windows form and in each control inside it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论