By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,136 Members | 1,205 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,136 IT Pros & Developers. It's quick & easy.

How to disable mouse scroll in combobox?

P: 3

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
Share this Question
Share on Google+
4 Replies

Expert 5K+
P: 7,872
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

P: 3
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

P: 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

Expert 5K+
P: 7,872
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.