Lebans mousewheel lock not working

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Clearly everybody finds this very useful, so it must be something I have
missed in setting it up, but it does not work for me!
I downloaded A2KMouseWheelHookVer22 and extracted MouseHook.dll to the
folder where I have my .mdb
I have not done anything at all other than this.
Opened the app, mouse still scrolls. What have I missed?
Do I have to have a command button within my app for users to manually fire
this? I thought it was going to be automatic, seamless, no user intervention
at all...
Thanks
CW
 
CW said:
Clearly everybody finds this very useful, so it must be something I
have missed in setting it up, but it does not work for me!
I downloaded A2KMouseWheelHookVer22 and extracted MouseHook.dll to the
folder where I have my .mdb
I have not done anything at all other than this.
Opened the app, mouse still scrolls. What have I missed?
Do I have to have a command button within my app for users to
manually fire this? I thought it was going to be automatic, seamless,
no user intervention at all...
Thanks
CW

There is also VBA code that goes into your app and a function that you have to
call. Read the instructions on his site.
 
Also have a look of the Form in the Stephen Leban's sample database. On
this Form you can enable or disable the mouse-wheel so it must have to code
that you can have a look to do the same in your database.
 
Thanks, Van - yes I did think perhaps that was the issue - that I need to
provide a button within my app, for it to be operable. I can do that I guess.
However, and maybe I misundersttod this, I thought it would be a totally
transparent automatic disabling process that users wouldn't even have to
think about (or forget to do!)
Does anybody know if this is how it works? Or does it HAVE to be manually
disabled by hitting a button?
Many thanks
CW
 
CW said:
Thanks, Van - yes I did think perhaps that was the issue - that I
need to provide a button within my app, for it to be operable. I can
do that I guess. However, and maybe I misundersttod this, I thought
it would be a totally transparent automatic disabling process that
users wouldn't even have to think about (or forget to do!)
Does anybody know if this is how it works? Or does it HAVE to be
manually disabled by hitting a button?
Many thanks

It has to be enabled by running a line of code, but that code doesn't have to be
behind a button. It could be executed automatically when the file is opened for
example in the open event of the startup form.
 
Right at the top of the MouseWheelHook Web page:

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!


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top