A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Access 97-2003 Disable Mouse Scroll



 
 
Thread Tools Display Modes
  #1  
Old September 17th, 2008, 11:39 PM posted to microsoft.public.access.forms
Abe Katz
external usenet poster
 
Posts: 43
Default 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  
Old September 18th, 2008, 12:46 AM posted to microsoft.public.access.forms
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default 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  
Old September 18th, 2008, 02:39 AM posted to microsoft.public.access.forms
Linq Adams via AccessMonster.com
external usenet poster
 
Posts: 1,474
Default 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  
Old December 10th, 2008, 04:02 PM posted to microsoft.public.access.forms
Lambi000
external usenet poster
 
Posts: 63
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.