Disable mouse wheel on controls

  • Thread starter Thread starter Tim Frawley
  • Start date Start date
T

Tim Frawley

Is there a way to disable the mouse wheel (only in my app not for
other apps) in specific controls like the Microsoft Text Box ?
 
* (e-mail address removed) (Tim Frawley) scripsit:
Is there a way to disable the mouse wheel (only in my app not for
other apps) in specific controls like the Microsoft Text Box ?

For example, for a listbox:

\\\
Public Class ExtendedListBox
Inherits ListBox
Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
Const WM_MOUSEWHEEL As Int32 = &H20A
If m.Msg <> WM_MOUSEWHEEL Then
MyBase.WndProc(m)
End If
End Sub
End Class
///
 
Back
Top