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

Home Posts Topics Members FAQ

How to make Class properties available to entire mdb?

I have used the code from KB article 278379 "How to Detect and Prevent
the Mouse Wheel from Scrolling Through Records in a Form", and it
works fine.

The code involves creating a new module, a new class module, and
adding code to a particular form where the mouse wheel scrolling is to
be disabled.

My question is this: the code is aimed at disabling the mouse scroll
wheel in just one form. I would like to disable the scroll wheel in
the entire mdb. I tried copying some code to a form that stays open
the entire time the mdb is open, but to no avail. Any suggestions?

THANKS,
Tammy
Nov 12 '05 #1
2 1506
You will have to subclass the WIndow behind each open Form, period.
I produced a standard WIndows DLL that uses a Hook in order to get
around this issue of one function call to disable the Mouse for all
Forms/Windows. See:
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.
"TammyZ" <tz****@1st.net> wrote in message
news:49**************************@posting.google.c om...
I have used the code from KB article 278379 "How to Detect and Prevent
the Mouse Wheel from Scrolling Through Records in a Form", and it
works fine.

The code involves creating a new module, a new class module, and
adding code to a particular form where the mouse wheel scrolling is to
be disabled.

My question is this: the code is aimed at disabling the mouse scroll
wheel in just one form. I would like to disable the scroll wheel in
the entire mdb. I tried copying some code to a form that stays open
the entire time the mdb is open, but to no avail. Any suggestions?

THANKS,
Tammy


Nov 12 '05 #2
Stephen,

Thanks for the guidance - I will try your code next week when I return
to the client site.

Thanks so much,
Tammy

"Stephen Lebans" <Fo****************************************@linval id.com> wrote in message news:<hx*********************@ursa-nb00s0.nbnet.nb.ca>...
You will have to subclass the WIndow behind each open Form, period.
I produced a standard WIndows DLL that uses a Hook in order to get
around this issue of one function call to disable the Mouse for all
Forms/Windows. See:
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.
"TammyZ" <tz****@1st.net> wrote in message
news:49**************************@posting.google.c om...
I have used the code from KB article 278379 "How to Detect and Prevent
the Mouse Wheel from Scrolling Through Records in a Form", and it
works fine.

The code involves creating a new module, a new class module, and
adding code to a particular form where the mouse wheel scrolling is to
be disabled.

My question is this: the code is aimed at disabling the mouse scroll
wheel in just one form. I would like to disable the scroll wheel in
the entire mdb. I tried copying some code to a form that stays open
the entire time the mdb is open, but to no avail. Any suggestions?

THANKS,
Tammy

Nov 12 '05 #3

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

Similar topics

1
by: Phil Powell | last post by:
Consider this: class ActionHandler { ...
1
by: BKM | last post by:
I've been using the following 2 ways to make sure my WebBrowser is finished loading a page before continuing with the next code. do:doevents:loop while WebBrowser.Busy do:doevents:loop until...
3
by: nicver | last post by:
I am fixing a client's Web site and for some reason an ASP class does not want to use the variables it retrieves when it initialiases. This is an excerpt of the class and it is enough to show...
12
by: Bob | last post by:
I have some data in a DataTable object that I'd like to put into a static class for the entire app to use, kind of like a cahced global value. The data in there should not change, but DataTable by...
19
by: hamil | last post by:
I have a form with one button, Button1, and a Textbox, Textbox1 I have a class, class1 as follows. Public Class Class1 Public DeForm As Object Sub doit() DeForm.Textbox1.text = "It works"...
7
by: Steven Bethard | last post by:
I've updated PEP 359 with a bunch of the recent suggestions. The patch is available at: http://bugs.python.org/1472459 and I've pasted the full text below. I've tried to be more explicit about...
19
by: zzw8206262001 | last post by:
Hi,I find a way to make javescript more like c++ or pyhon There is the sample code: function Father(self) //every contructor may have "self" argument { self=self?self:this; ...
10
by: AA Arens | last post by:
I do have a database with customer info in it. To avoid it will be taken out of our office, is it possible to make it not-readable after a certain period? then every let say seven days, I needs to...
7
by: Andy B | last post by:
I have an instance of an object that needs to be accessed by all members of a page like page_load, button_click events and so on. Where in the codebehind would I put the creation of the object...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
1
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...
1
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...
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: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.