How to disable scrollwheel? [duplicate]

I am going on the assumption that you want to disable scrolling. If not, please clarify your question.

For some reason, Windows wont let you set the vertical or horizontal scrolling to zero for the mouse wheel in the Control Panel. However, you can manually set them to 0 in the registry.

Open the Registry Editor by clicking Start and typing regedit and hit enter.

Navigate to HKEY_CURRENT_USER\Control Panel\Desktop and set WheelScrollChars and WheelScrollLines to 0.

A reboot is necessary for this to take affect.

This will disable scrolling, not the button itself.

PS: If you open the Mouse setting in the Control Panel, it will reset those settings back to 3. Just FYI.