Disable Scroll Wheel (1 Viewer)

Crispie38

Registered User.
Local time
Today, 00:51
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
 

ColinEssex

Old registered user
Local time
Today, 00:51
Joined
Feb 22, 2002
Messages
9,168
search for disable mouse wheel - it's been covered dozens of times

Col
 

Alan R

Registered User.
Local time
Today, 00:51
Joined
Sep 11, 2006
Messages
70
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
 

rainman89

I cant find the any key..
Local time
Yesterday, 19:51
Joined
Feb 12, 2007
Messages
3,015
Also you can set the form cycle properties to current record
 

missinglinq

AWF VIP
Local time
Yesterday, 19:51
Joined
Jun 20, 2003
Messages
6,420
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

Top Bottom