Completely disable the mouse wheel on WinForm

I need to completely disable the mouse wheel in the form of a window and on each control contained in it, I tried events with the mouse wheel, but it does not 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 the mouse wheel in the form of a window and in each of them inside?

+4
source share
1 answer

Something like this might be good enough for you.

+3
source

All Articles