Link to home
Start Free TrialLog in
Avatar of JamieRhodes
JamieRhodes

asked on

MouseWheelHook

Has anyone ever used this? Any problems with runtime version?
Avatar of Colonel32
Colonel32

Nope :) What problems are you having and what does your code look like?
Avatar of JamieRhodes

ASKER

When I use the mouse wheel in a form it knocks out the current record with all the criteria etc,,, and creates a new record.  I was browsing around and printed out an article from an earlier asked question on the topic( dont ahve it with me right now or I would tell you) and had links to microsoft and lebans(?).  
When you say "hook" do you mean that you are subclassing the form with the SetWindowLong API?

Also, I'm not sure I understand when you say that "it knocks out the current record with all the criteria etc,,, and creates a new record". Do you mean that just the focus is moved to the "New Record" row, or is data actually added to the data-set?

A look at your existing (relevant) code would help put things into focus :)
In a form when you use the mouse wheel yes a new reocord is focused on, which is what I do not want to happen
Again, it will be easier to see what is causing this if you post your code.
okay no code is causing this to happen, it is how access and the mouse wheel work by default.  When you roll the mouse wheel, a new record is created and I do not want a new record created.  
ASKER CERTIFIED SOLUTION
Avatar of Colonel32
Colonel32

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
Okay perhaps added was not what I wanted to say.  When this form opens it already has  information that the user has selelected from the previous form.  Such as residentid, date etc... The user then will add more data to complete the process.  The problem is when they accidentially roll the mouse wheel the residentid, date etc are lost.