Disable Scroll Wheel

Crispie38

Registered User.
Local time
Today, 09:17
Joined
Jun 26, 2006
Messages
15
Hi

Is there a way of disabling the scroll wheel so it doesn't cycle through the other reocrds in a form.

Thanks
 
search for disable mouse wheel - it's been covered dozens of times

Col
 
Search for Scroll Wheel

If you use the Search Facility for Scroll Wheel you will find quite a few articles in this forum, many of which will probably help your query.

Alan

Colin,

Just beat me to it
 
Also you can set the form cycle properties to current record
 
Setting the form cycle properties to current record won't affect the mouse wheel, just cycling using the <TAb> and <Enter> keys. Stephen Lebans has a sample database that does this and can be downloaded at:

http://www.lebans.com/mousewheelonoff.htm

Download and unzip the db and take a look. Open your db and goto File > External Data > Import and import the module modMouseHook (I think that's the name) from the sample database.

You need to place a copy of the MouseHook.dll file in the same folder as your database. It’s normally a Hidden file, so you’ll have to unhide it, Find it, then copy it to the folder.

In the first form to load in your db use this code:

Code:
Private Sub Form_Load()
   ' Turn off Mouse Scroll
    blRet = MouseWheelOFF
End Sub
 
Last edited:

Users who are viewing this thread

Back
Top Bottom