Stephens Lebans Mousehook.dll issue

micks55

Registered User.
Local time
Today, 20:03
Joined
Mar 20, 2006
Messages
120
Hi All,
Stephen's mousehook works fine, as with all that he did, but I want to disable the mousewheel in the main form while allowing it in the subform.
I've searched and tried eveything but no solution yet and the main form is crashing Access big time.
Is it possible? Or can I set up the Main form so that the mousewhell has no effect?
I'm using Access 2000 because I'm an old dog not wanting to learn new tricks with ribbons.
Thanks
 
I'll assume it's a no then. I'll disable the wheel in everything. Thanks anyway.
 
Have you tried turning the wheel on, when entering the Subform Control and off, and when exiting it?

Code:
Private Sub SubformControlName_Enter()
  blRet = MouseWheelOn
End Sub
Code:
Private Sub SubformControlName_Exit()
  blRet = MouseWheelOff
End Sub

Be sure that you replace SubformControlName with the actual name of the Subform Control, which may or may not be the same as the name of the Form the Subform is based on.

Linq ;0)>
 
Thanks missinglinq. Quick test and it seems to do the trick.
 

Users who are viewing this thread

Back
Top Bottom