Stephens Lebans Mousehook.dll issue (1 Viewer)

micks55

Registered User.
Local time
Today, 11:34
Joined
Mar 20, 2006
Messages
110
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
 

micks55

Registered User.
Local time
Today, 11:34
Joined
Mar 20, 2006
Messages
110
I'll assume it's a no then. I'll disable the wheel in everything. Thanks anyway.
 

missinglinq

AWF VIP
Local time
Today, 06:34
Joined
Jun 20, 2003
Messages
6,420
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)>
 

micks55

Registered User.
Local time
Today, 11:34
Joined
Mar 20, 2006
Messages
110
Thanks missinglinq. Quick test and it seems to do the trick.
 

Users who are viewing this thread

Top Bottom