471,086 Members | 1,451 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,086 software developers and data experts.

How to disable mouse scroll in combobox?


I have a problem with combobox. On my form is many comboboxes and when I select same option and use my mouse roll, combobox change to next value. How to disable mouse roller? I tried to change focus on another combo but it isn't good solution because you again cannot scroll page but change option in combobox. I also tried to change focus to parent -> combobox.parent.focus() but if combo is on bottom of the page view is centered and I lose current position of scrollbar. Any idea??

Jun 6 '07 #1
4 3610
7,872 Expert 4TB
Click anywhere outside of your combo boxes before mouse-wheel scrolling.
That's the way it's been for years now, you've never noticed?
(I've had it change radio-button values on me...has caused me some troubles when filling out online forms)
Jun 6 '07 #2
Maybe for years but in asp not in window appplication. Check if don't belive, click outside combo dosen't change focus.
Jun 6 '07 #3
So question remains. How to disable mouse scroll when combobox is in state focus? Hmm mouse scroll should works but it shouldn't change combobox values??

Please help :)
Jun 6 '07 #4
7,872 Expert 4TB
Ok I see your point, I thought you were in a webpage.

Don't see a good way to stop it, it seems to be an OS thing, maybe you can capture the windows Message saying scroll and stop it I dunno.

Why are you making a windows application that SCROLLs....nobody likes to scroll.
Jun 7 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Chris DiPierro | last post: by
2 posts views Thread by nicholas | last post: by
8 posts views Thread by rodchar | last post: by
reply views Thread by Al | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.