If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Access 97-2003 Disable Mouse Scroll
Hello,
Can you please tell me an easy and simple way, how to disable the mouse scroll. Thanks abe |
#2
|
|||
|
|||
Access 97-2003 Disable Mouse Scroll
Check what Stephen Lebans has at http://www.lebans.com/mousewheelonoff.htm
-- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) "Abe Katz" wrote in message ... Hello, Can you please tell me an easy and simple way, how to disable the mouse scroll. Thanks abe |
#3
|
|||
|
|||
Access 97-2003 Disable Mouse Scroll
Stephen's beautiful hack, at the link Doug gave, you is really the gold
standard for handling this problem. Here's a quick step-by-step for using it First, download and unzip the db and take a look. Go into your db and goto File External Data Import and import the module modMouseHook from the sample database. Next make sure you have the included file, MouseHook.dll in the same folder your database resides in. The following code needs to run before the mousewheel will be locked: Private Sub Form_Load() 'Turn off Mouse Scroll blRet = MouseWheelOFF End Sub If you have one form that always loads first in your db, place the code there. If the first form to load varies, place the same code in each form. You should be set now. Good luck!. -- There's ALWAYS more than one way to skin a cat! Answers/posts based on Access 2000/2003 Message posted via http://www.accessmonster.com |
#4
|
|||
|
|||
Access 97-2003 Disable Mouse Scroll
That worked great for me. I only needed one screen to not allow scrollling.
So on load MouseWhellOFF and on close MouseWheelON. I'm going to use this all the time now. Thanks! "Linq Adams via AccessMonster.com" wrote: Stephen's beautiful hack, at the link Doug gave, you is really the gold standard for handling this problem. Here's a quick step-by-step for using it First, download and unzip the db and take a look. Go into your db and goto File External Data Import and import the module modMouseHook from the sample database. Next make sure you have the included file, MouseHook.dll in the same folder your database resides in. The following code needs to run before the mousewheel will be locked: Private Sub Form_Load() 'Turn off Mouse Scroll blRet = MouseWheelOFF End Sub If you have one form that always loads first in your db, place the code there. If the first form to load varies, place the same code in each form. You should be set now. Good luck!. -- There's ALWAYS more than one way to skin a cat! Answers/posts based on Access 2000/2003 Message posted via http://www.accessmonster.com |
Thread Tools | |
Display Modes | |
|
|