MouseWheel Hook DLL Question (1 Viewer)

daverskully

Registered User.
Local time
Today, 04:53
Joined
Mar 10, 2008
Messages
23
I'm trying to implement the Mouse Wheel Hook application from http://www.lebans.com/mousewheelonoff.htm and I'm having some difficulty. I says to copy the .DLL into the folder of the database and then to add a code to a button thats in the form.

This is what I have done.. I've copied the .DLL file into the folder and have added a button with the code:

Private Sub Command14_Click()
' Turn the MouseWheel Off
Dim blRet As Boolean
blRet = MouseWheelOFF
End Sub

However, it isn't working. Is there anything I'm missing here?
Dave
 

odin1701

Registered User.
Local time
Today, 05:53
Joined
Dec 6, 2006
Messages
526
Have you set a reference to the DLL file? If not, Access has no idea what to do.
 

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 12:53
Joined
Sep 12, 2006
Messages
15,756
ive had no problems

as well as the dll,. you need to copy the code into a module

then to turn it off /on just

call mousewheeloff
call mousewheelon
{dont even need the expression 'call' - i just use them to make the code clear to me - dont need the variable asignment either}
 

daverskully

Registered User.
Local time
Today, 04:53
Joined
Mar 10, 2008
Messages
23
Thanks for the response.. I've just put the module into the database and it still isn't working. So now I have the .DLL in the folder, have place the code with the button, and have added the module (by way of copy and paste).. is there still something wrong?
 
Last edited:

gemma-the-husky

Super Moderator
Staff member
Local time
Today, 12:53
Joined
Sep 12, 2006
Messages
15,756
thrre wasnt for me

in a form open event i just put

call mousewheeloff

and it did
 

odin1701

Registered User.
Local time
Today, 05:53
Joined
Dec 6, 2006
Messages
526
thrre wasnt for me

in a form open event i just put

call mousewheeloff

and it did

You have to set a reference to the dll file - depending on your version of access, at least that is what the webpage states.
 

Users who are viewing this thread

Top Bottom