Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stopping mouse wheel from scrolling records

Status
Not open for further replies.

alukard

Technical User
Apr 15, 2003
7
US
I have a form with a subform, both are single forms (default view), and are used to keep track of Non-Conformance Reports (manufacturing). The main form keeps track of the problem and the subform keeps track of each time it happened.

Problem is i have tried to use the mousehook.dll found here
and when i use the On Open Event it will work on the main form, but not on the subform. Even if i use the subforms On Open Event not just the main forms On Open Event. I also tried using the global usage (blRet = MouseWheelOFF(True)) and it still doesnt stop it on the subform.

I have also tried the M$ way here at
I used the Visual Basic ActiveX DLL way and it worked the same as the mousehook.dll, only on the main form and not the subform.

Is there a way to get either of these to work on the subform or another way to prevent record scrolling with the mouse wheel. Id prefer to use the mousehook.dll as it just needs to be in the same folder and more likely to work on PCs other than my own.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top