By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,398 Members | 982 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,398 IT Pros & Developers. It's quick & easy.

Wheel Mouse Wheel

P: n/a
Anyone have a simple way to disbale the wheel on a wheel mouse in Access
Apps? I have tried the Lebans code and it does not work for my
application.
Nov 12 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Ima Lostsoul previously wrote:
Anyone have a simple way to disbale the wheel on a wheel mouse in
Access Apps? I have tried the Lebans code and it does not work for my
application.

Then maybe you didn't use it properly.
It's fine for me.

Peter Russell
Nov 12 '05 #2

P: n/a
pj
Go to MS.com, knowledge base and search on Q278379. You need to create a dll
via VB6, MS do not recommend you control the mouse directly from within
Access.
All code is provided in article.
pj

"Ima Lostsoul" <me@myprovider.com> wrote in message
news:MP************************@netnews.comcast.ne t...
Anyone have a simple way to disbale the wheel on a wheel mouse in Access
Apps? I have tried the Lebans code and it does not work for my
application.

Nov 12 '05 #3

P: n/a
You should be using the latest version of the MouseHook windows DLL not
the older MouseWheel class solution.
http://www.lebans.com/mousewheelonoff.htm
New Version 2.3 Feb 26 2004

Please note this is an update from the Feb 23/04 release. Support has
now been added for Logitech Mice. The only difference between the
feature set for a MS Mouse and a Logitech Mouse is that you can scroll
an open Combo control from a MS Mouse only. Look at the code behind the
sample Forms to see how to turn the MouseWheel ON or Off. You need to
import into your own MDB the standard code module "modMouseHook" found
in the sample MDB included in the download zip file.

MouseWheelHook97.zip is an MDB demonstrating how to use a MouseHook to
turn off the MouseWheel. No more MouseWheel.DLL Hell! No DLL
registration required. The MouseHook DLL is a standard Windows DLL. Do
not try to Register it or set a Reference to it from within Access.
Just copy the included MouseHook.DLL into your Windows/System folder or
into the same folder as your application MDB. One instance handles all
Forms and SubForms so only call the functions once from a SINGLE Form.
Here is an A2K sample MDB including the DLL. MouseWheelHookA2K.zip .
Please note there is no difference between the MouseHook.DLL included in
either the A97 or A2K ZIP file.

Here is sample code that can be placed behind CommandButton controls.
You could also place this code in the Load event of a single Form.
Remember you need to call these functions only ONE TIME. The MouseHook
will look after the MouseWheel messages for all forms that you have open
now or at any time during your current session. Remember to turn the
MouseWheel back on before you exit the current session!

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

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Ima Lostsoul" <me@myprovider.com> wrote in message
news:MP************************@netnews.comcast.ne t...
Anyone have a simple way to disbale the wheel on a wheel mouse in Access Apps? I have tried the Lebans code and it does not work for my
application.


Nov 12 '05 #4

P: n/a
THe code contained in that KB article will not function properly without
modification. Further, the main reason I wrote the MouseHook DLL was to
overcome the limitations of the referenced KB solution.
http://www.lebans.com/mousewheelonoff.htm

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"pj" <pj@mevaprod.co.za> wrote in message
news:0J********************@is.co.za...
Go to MS.com, knowledge base and search on Q278379. You need to create a dll via VB6, MS do not recommend you control the mouse directly from within Access.
All code is provided in article.
pj

"Ima Lostsoul" <me@myprovider.com> wrote in message
news:MP************************@netnews.comcast.ne t...
Anyone have a simple way to disbale the wheel on a wheel mouse in Access Apps? I have tried the Lebans code and it does not work for my
application.



Nov 12 '05 #5

P: n/a
In article <me**********************@russellscott.btinternet. com>,
ru***@127.0.0.1 says...
Ima Lostsoul previously wrote:
Anyone have a simple way to disbale the wheel on a wheel mouse in
Access Apps? I have tried the Lebans code and it does not work for my
application.

Then maybe you didn't use it properly.
It's fine for me.

Peter Russell


I imported the exact form and code into my app. It SAYS the single call
to the function disables the wheel for your entire app. In my app the
click on the button on the example for kills the wheel on that form but
it is still enabled on all of the other forms in my app. Most of my
forms include tab controls with subforms on the tabs. The wheel is not
disbaled for any of them for example.
Nov 12 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.