T Tim Frawley Mar 27, 2004 #1 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 ?
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 ?
C Cor Mar 27, 2004 #2 Hi Tim, I've never done it but maybe you can use this event http://msdn.microsoft.com/library/d...emwindowsformscontrolclassmousewheeltopic.asp I hope this helps? Cor
Hi Tim, I've never done it but maybe you can use this event http://msdn.microsoft.com/library/d...emwindowsformscontrolclassmousewheeltopic.asp I hope this helps? Cor
H Herfried K. Wagner [MVP] Mar 27, 2004 #3 * (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 ? Click to expand... 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 ///
* (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 ? Click to expand... 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 ///