.net - Detecting Horizontal Mouse Wheel movement -



.net - Detecting Horizontal Mouse Wheel movement -

i using mousewheel in dotnet application, have done following: msdn mousewheel example

but on application great utilize existing hardware horizontal mouse wheel too. how can observe when used in .net?

i using logitech rx1500 or or m-rag97.

regards

-

* solution *

override winproc grab mouse wheel event.

mustinherit class win32messages public const wm_mousehwheel integer = &h20e 'discovered via spy++ end class protected overrides sub wndproc(byref m message) mybase.wndproc(m) if m.hwnd <> me.handle homecoming end if select case m.msg case win32messages.wm_mousehwheel firemousehwheel(m.wparam, m.lparam) m.result = directcast(1, intptr) exit select case else exit select end select end sub

this blog post shows how can add together back upwards winforms application.

.net events mouse mousewheel

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -