Link to home
Start Free TrialLog in
Avatar of adamkushner
adamkushner

asked on

Disable Mouse wheel without using API?

Is it possible to disable the mouse scroll wheel without any API?
Avatar of JohnChapin
JohnChapin

To the best of my knowledge, you can't.

However, I had the same problem in VB6.
I found a great web page to deal with the subclassing at

www.missouri.edu/~finaidtk/sboard.htm

This allows subclassing multiple objects on a single form.
Other search results found a method that would only handle one object on a form.

Warning: Requires API declares.
Avatar of adamkushner

ASKER

JohnChapin,

Thanks for your input.

Basically I'm avoiding API's cause it's way over my head.  I'd love to learn, but don't have the time right now.  I'm working on a project that requires me to disable the scroll wheel, and don't want to spend too much time on it.  But it looks like that is unavoidable at this point.

Anyway, maybe you can help me around it...

I have a combobox, when an item in the combo box is clicked data is pulled from my database an inserted into a text box.  

I guess a the mouse wheel evaluates to a click so when the combo box gains focus and the mouse wheel is scrolled, all values are cliked and the text box is filled with almost all possible values.

Any way around this?


By the way I am coding in VB6,
don't know if this changes anything
How about using API?
Anyone have code required to do this?
ASKER CERTIFIED SOLUTION
Avatar of JohnChapin
JohnChapin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial