473,563 Members | 2,904 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable Mousewheel from Scrolling ComboBox

Hi,

How can I prevent the mousewheel from scrolling through the combobox items
when it has the focus?
Thanks,
--
GrandpaB
Nov 23 '05 #1
2 3403
use a message filter

implement Imessagefilter interface and cancel the event

regards

Michel Posseth [MCP]

"GrandpaB" <Gr******@discu ssons.microsoft .com> wrote in message
news:97******** *************** ***********@mic rosoft.com...
Hi,

How can I prevent the mousewheel from scrolling through the combobox items
when it has the focus?
Thanks,
--
GrandpaB

Nov 23 '05 #2
Michel,

Thanks for your assistance. I never knew that an Imessagefilter existed.
I'll do a little research and attempt to cancel the Mousewheel.
Thanks again,
--
GrandpaB
"m.posseth" wrote:
use a message filter

implement Imessagefilter interface and cancel the event

regards

Michel Posseth [MCP]

"GrandpaB" <Gr******@discu ssons.microsoft .com> wrote in message
news:97******** *************** ***********@mic rosoft.com...
Hi,

How can I prevent the mousewheel from scrolling through the combobox items
when it has the focus?
Thanks,
--
GrandpaB


Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
19568
by: mr_burns | last post by:
Hi, Is it possible to disble horizontal scrolling using CSS? I want to try and use two backgrounds, one tiling vertically and part of the body background, which will not force scrolling, but one that will be part of a table stretching of to the right, which will force unwanted horizontal scrolling. How is this written in the stylesheet?...
2
2990
by: Jack | last post by:
Hi all, I searched the archives and found everyone happy with Stephen's MouseWheel On/Off code except for those with subforms. Stephen's page indicates that he has added code to handle subforms ("Bug Fix for SubForms with ScrollBars. Bug fix for SubForms without visible ScrollBars.") - BUT I still can't get it to work on my app with my...
11
1647
by: Billie Dee | last post by:
I am currently using (and loving) Lebans MouseWheelOnOff (v22). My problem is that if the user clicks an option box suddenly the mousewheel allows scrolling on the form again. This is causing the record behind the form to change. Does anyone know how to control this? Thanks in advance. Billie Dee
6
12121
by: GGerard | last post by:
Hello I have an Access 2000 form with the following properties: Record Source - Table1
8
2521
by: rodchar | last post by:
hey all, can someone please tell me if you can disable the scroll button for a dropdownlist. For example, when you select an item in a dropdownlist and it still has focus and you accidently hit scroll wheel on your mouse the selected item changes. can this be disabled? thanks,
6
5011
by: Roger Uribe | last post by:
There are references to using the wndproc form sub to trap and swallow the mousewheeel events - but they don't get there when a combobox (or many other controls) has the focus.. Yet the MSDN does suggest this is a way to stop the mousewheel scrolling a combobox anyone know the REAL answer??? Thanks Roger
5
2690
by: Dennis | last post by:
I have a form with buttons and a custom control I wrote showing a list of items. I would like to scroll the list when the mouse is over the control and the mouse wheel is moved but yet don't want to set the focus to my control. How can I do this. Currently, I set the focus to my control when the mouse hovers over my control but this could...
1
2149
by: bob | last post by:
The help system says you can "get" (not set) the number of lines the mouse moves upon one "notch" of the wheel. The value for my system is 4. How do I force it to do only 1. Give me the EASY way, please. (I'm putting this code into a "mousewheel" event, so I want the number of lines scrolling to be the same for my computer as well as any...
3
5953
by: j0rd4n | last post by:
I have a user control that needs to allow vertical scrolling but not horizontal scrolling. In the user control's resize event, I need to adjust the size of all the children controls. For this to work correctly, I need the AutoScroll to not enable the horizontal scrollbar. After researching MSDN, I found the HScroll which can be used to...
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.