Mouse Wheel go at the Next record, how cancel this option

L

ldiaz

Hi All.

I have a problem with my Main form, I have disabled the record navigation
but with the mouse wheel it does not work, since the weel go to next &
Previous record .

is there any option to block the weel mouse fuction?

Thanks
 
C

Chai

Hi there,

The code I downloaded is not working. I tried placing this behind a command
button that opens a form:

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

I also put it in the Load Event of the form and didn't work also. Can you
help?

Thanks.

Chai



ldiaz said:
Hi Douglas, I have downloaded the code , and it;s working fine..

thank you.
 
D

Douglas J Steele

Did you add the necessary modules from Stephen's code to your application,
or did you simply try to add that reference to MouseWheelOFF?

If you did add all of the code, what error message are you getting? ("is not
working" doesn't give enough to go on...)
 
C

Chai

I didn't see any modules in Lebans website. There is a zip file though, I
don't know if I need it.

All I did was added the codes (below) to a CommandButton control or in a
form's On Load event. When I click on a CommandButton control, I didn't get
any error messages nor did the mouse roller turned off. It was the same when
I put the code in a form's On Load event. It didn't give me any error
messages nor the the mouse wheel roller turned off.

Chai
 
D

Douglas J. Steele

You need to copy module modMouseHook from the sample database that's in the
Zip file into your database, and you need to copy the file MouseHook.dll
into your Windows/System folder, or into the same folder as your application
database.
 
C

Chai

Thanks, it works!

Douglas J. Steele said:
You need to copy module modMouseHook from the sample database that's in the
Zip file into your database, and you need to copy the file MouseHook.dll
into your Windows/System folder, or into the same folder as your application
database.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top