473,792 Members | 3,400 Online
Bytes | Software Development & Data Engineering Community
+ 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 5895
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****@seaport net.com> wrote in message
news:e5******** *************** ***@posting.goo gle.com...
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****@seaport net.com> wrote in message
news:e5******** *************** ***@posting.goo gle.com...
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****@seaport net.com> wrote in message
news:e5******** *************** ***@posting.goo gle.com...
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************ *************** *************@l invalid.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
2168
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 know the x,y coords (in pixels) of where he is pointing to. Here is what I have done
3
2202
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 envelopes. The problem is that some of my envelopes are coming back for "wrong addresses". I figured out that when I'm in Access my information is scrolling to the next record sometimes, without me meaning to do that. So, is there a way to lock...
1
3434
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 instance, whenever a user uses the mouse wheel to scroll down, the first record disappears off the screen and they can't get it back unless they click on the Refresh button or Page Up. The mouse wheel never scroll back up to the first record. ...
1
3112
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
5944
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 the page but I find that the iframes interfere with the getting the mouse coords from the screen which is essential in moving the scroll bar around. My test html is given below. With the iframe hidden the mouse coords are obtainable. With the...
1
3211
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. Now, in Firefox, the page appears properly as expected. I can scroll down and up the div part by dragging the scroll bar by mouse and I can scroll down and up the div part by rolling up and down the mouse wheel as well. But I am facing the problem...
0
4189
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: http://balfourwest.50webs.com/balfour%20west.html and i want to be able to scroll the entire page with the mouse. i can scroll the page until i actually click within it. (make sense?) like if i click file or something then scroll it will scroll but if i click one of the tabs it...
2
6978
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 reliable) way to have the link open in a new window/tab (using JS)? I have no control over the JS already on the page - this is for a selenium user extension that I'd like to write.
2
1694
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 advance
0
10207
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10156
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9997
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9030
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7537
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4110
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 we have to send another system
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.