Windows Develop Bookmark and Share   
 index > Windows Forms General > Mouse wheel left/right click ?
 

Mouse wheel left/right click ?

My mouse wheel can click left and right as well as down. Does anyone know how to capture this event ? It doesn't fire the mousewheel or mouseclick events. I also tried WM_SCROLL.

cgraus  Thursday, September 28, 2006 9:25 AM
SRIRAM RAJAMANURI  Thursday, September 28, 2006 3:57 PM
sorry to be a bit silly but are you referring to C++.NET or C#?
ahmedilyas  Thursday, September 28, 2006 5:20 PM

Thanks for trying to help, but I know all that stuff. My mouse wheel clicks from side to side, as well as rolling and pressing down. It's the side to side clicks I am trying to catch.

cgraus  Thursday, September 28, 2006 10:16 PM

I asked in the Winforms forum because it's a winforms question. I happen to be using C#, but if you know how to do this using winforms, I don't care what language your sample code comes from...

cgraus  Thursday, September 28, 2006 10:17 PM
I'd guess it would generate the WM_XBUTTONDOWN message (0x20B). Capture it with WndProc(). Check it out first with Spy++
nobugz  Thursday, September 28, 2006 10:36 PM

Thanks for the suggestion, but the two X buttons are the ones on the side of the mouse. I'll try it, but reading the docs for the message, I'm pretty sure this won't do it.

cgraus  Thursday, September 28, 2006 10:45 PM

You're a legend. What you suggested wasn't it, but it helped me to find the answer in MSDN - WM_MOUSEHWHEEL

Thanks !!!

cgraus  Thursday, September 28, 2006 10:46 PM
Minimum operating systems Windows Vista

cool~~~

gqlu  Friday, September 29, 2006 1:18 AM

OK - thanks for pointing that out. So, I'm still lost at sea, with no way to catch this message.

cgraus  Friday, September 29, 2006 1:25 AM

You can use google to search for other answers

Custom Search

More Threads

• Windows XP
• Execute methods in windows app from embedded html page?
• INI File
• Problems with a Control
• Don't load data on designer edit in visual inherited form
• Developing an install application in .Net
• Dynamic Controls?
• PrintPreviewDialog - PageCounter Not Displaying more than 1000
• BindingSource Does Nothing
• How to read an XML file that can be changed in future?