473,473 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Turn mouse scroll off.

Hi Stephen,

I'm trying to use your mousehook off...and thanks so much... it's such
a blessing that you share with the rest of us. I have the dll in the
same folder as the database and placed the button code in the load
event of the home page. When I leave the home page and go into other
forms, the scroll still moves the user into another record. Do I need
to put the code in the load event of every form and subform where I
don't want the scroll to work? I only have access opened once, a
front end. I import the module, just as it was. Help... I'm still
learning how functions work, am I doing something wrong. I'm using
Access XP.
Thanks for your time and attention.
Debbie
Nov 13 '05 #1
6 5872
You only call the MouseWHeelOff function ONCE from the Load event of any
SINGLE form and then turn it back on from the UnLoad event of that same
form.

What do you mean the Load event of the Home page? The MouseHook DLL will
not work with DAP's.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Debbie" <de****@seaportnet.com> wrote in message
news:e5**************************@posting.google.c om...
Hi Stephen,

I'm trying to use your mousehook off...and thanks so much... it's such
a blessing that you share with the rest of us. I have the dll in the
same folder as the database and placed the button code in the load
event of the home page. When I leave the home page and go into other
forms, the scroll still moves the user into another record. Do I need
to put the code in the load event of every form and subform where I
don't want the scroll to work? I only have access opened once, a
front end. I import the module, just as it was. Help... I'm still
learning how functions work, am I doing something wrong. I'm using
Access XP.
Thanks for your time and attention.
Debbie


Nov 13 '05 #2
Thanks so much for your quick reply. I'm sorry for the confusion
about the home page... it's just a lookup form with a subform that
list and sorts the records... it remains open all the time so I put
your function on the load. Now I'll go put it on the load of every
form that I don't want the scroll to work. Is there a problem if I
don't unload the home page and I call your function for other forms as
I load them?
Thanks again for your continued support.
Debbie
PS I'm moving and my DSL will go down sometime today, so if I don't
reply for a few days you won't think I'm ignoring you.
Nov 13 '05 #3
Stop! Did you not read my reply?

I told you to place the call to MouseWheelOff in the Load event of a
SINGLE form not every form!!!!!!!!
The MousxeHook download page and the sample MDB states/shows that a
SINGLE call to MouseWHeelOff will handle all open forms in your
application.

Before your application closes it should call MouseWheelOn.

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Debbie" <de****@seaportnet.com> wrote in message
news:e5**************************@posting.google.c om...
Thanks so much for your quick reply. I'm sorry for the confusion
about the home page... it's just a lookup form with a subform that
list and sorts the records... it remains open all the time so I put
your function on the load. Now I'll go put it on the load of every
form that I don't want the scroll to work. Is there a problem if I
don't unload the home page and I call your function for other forms as
I load them?
Thanks again for your continued support.
Debbie
PS I'm moving and my DSL will go down sometime today, so if I don't
reply for a few days you won't think I'm ignoring you.


Nov 13 '05 #4
It's me again.... I'm trying to make this work ...so I went back and
re-read your website and I'm confused (ignorant). I have subforms
that I don't want the mouse scroll to work. I have placed your
function in the load and unload of the subform and then tried it just
on the main form
load event: blRet = MouseWheelOFF
unload event: blRet = MouseWheelON
the subform still scrolls. I also have a main form with a tab control
and each tab has a subform, same thing is happening there. I'm
thinking now as I look at all these sub forms that some of the
subforms I don't need and I may have to move the subform fields to the
main form and then the mouse off will work, cause it works on the main
forms, just not the subforms.
Is it true that the mouse off won't work on subforms? Maybe it won't
work on sub forms that should have never been created...? (My
ignorance is showing for sure now)
thanks and sorry for the multiple posts... I rushed the first one
knowing my dsl is going down sometime today.
Debbie
Nov 13 '05 #5
The MouseHook processes the MouseWheel messages for SuForm controls that
have a Visible ScrollBar. In other words the MouseWheel still works for
SubForms as this is the behaviour requested by the majority of users.
WHy is this an issue for you?

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
"Debbie" <de****@seaportnet.com> wrote in message
news:e5**************************@posting.google.c om...
It's me again.... I'm trying to make this work ...so I went back and
re-read your website and I'm confused (ignorant). I have subforms
that I don't want the mouse scroll to work. I have placed your
function in the load and unload of the subform and then tried it just
on the main form
load event: blRet = MouseWheelOFF
unload event: blRet = MouseWheelON
the subform still scrolls. I also have a main form with a tab control
and each tab has a subform, same thing is happening there. I'm
thinking now as I look at all these sub forms that some of the
subforms I don't need and I may have to move the subform fields to the
main form and then the mouse off will work, cause it works on the main
forms, just not the subforms.
Is it true that the mouse off won't work on subforms? Maybe it won't
work on sub forms that should have never been created...? (My
ignorance is showing for sure now)
thanks and sorry for the multiple posts... I rushed the first one
knowing my dsl is going down sometime today.
Debbie


Nov 13 '05 #6
I have a form that is suppose to only show one new record. This main
form is set for data entry. The main form has a tab control on it
with several tabs..the tabs are types of people associated with this
account. On the tab for main person, there can only be one. If a
user starts to enter a main user then touches their mouse scroll it
looks like they haven't entered the main person, so they start
entering another main person. This is because the mouse scroll
advanced it to a new person record. Two main people makes a mess. I
only put the mouse hook on one form at a time I just wanted you to
know that I had tried putting it on the main form and on the subform
on the tab. In trying to use the mouse hook I did realize that it's
working on the main form but not on the sub form... I also realized
that I don't need a subform for the main person since there is only
one per case, so I'm probably need to completely re-work this form,
just didn't want to do that if not necessary. Wanted to make sure
that I was understanding what you were saying and what I was reading
on your website. I really appreciate you taking this much time with me
and I appreciate that most people would want the subform to scroll.
I'm not suggesting that you build it any other way then the way it
works now. Me building better forms, using more indexes and using your
function should accomplish what I need.
Thanks again for helping so many of us.
Debbie

"Stephen Lebans" <Fo****************************************@linval id.com> wrote in message news:<gn*********************@ursa-nb00s0.nbnet.nb.ca>...
The MouseHook processes the MouseWheel messages for SuForm controls that
have a Visible ScrollBar. In other words the MouseWheel still works for
SubForms as this is the behaviour requested by the majority of users.
WHy is this an issue for you?

--

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

Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: CoreyMas | last post by:
Hello All, Here is what I would like to do I am creating a game program that displays a map (preferably in hexes but that is another matter) and whenever the user is over the "map" I want to...
3
by: ilushn | last post by:
Help! I am having a very aggervating problem with Access. Call me lazy, but I like to copy and paste addresses from Access into microsoft work, like for sending letters where I only need about 3...
1
by: jv | last post by:
I have quite a few of continuous form and subform where I do allow scroll bars. I run into problems with the mouse wheel whenever the data on the form does not take up the whole page. In this...
1
by: Marcin | last post by:
Im using MS Access 2000. i have a main form and ona subform that is scrolled vertically. unfortunately i use mouse scroll to scroll this subform. I appreciate your help
19
by: wmanzo | last post by:
I have a really professional conspiracy movie site and I use tons of layers and an external scroll bar assembly. I would like to put the various sections into MS Iframes and in order to clean up...
1
by: kallol | last post by:
I have a simple HTML page where I have a form with in a <div style="height: 600px; width: 100%; overflow: auto;">. The mentioned div styles are mandatory to get the expected behavior of the div. ...
0
by: hokeyplyr48 | last post by:
This is my first flash project and i've been doing it all of tutorials. working in Flash CS3 windows xp pro actionscript 2.0 the website can be found here:...
2
by: wpollans | last post by:
Hello, I need to able to write JS that will click on a link with the middle mouse button - so that the link target will open in a new window or tab - using firefox. Or is there a better (more...
2
by: catsweepy2 | last post by:
Hi I am trying to turn off the mouse wheel scroll event (or at least ignore it) in a windows form app. Can anybody provide me with any advice/code. Using: .Net framework 1.1 C# Thanks in...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.