Quick question about Mousewheel code

G

Guest

I'm going to use Stephen Lebans code but I have a quick question. If I put
the Mousewheel OFF and Mousewheel ON in the Load and Unload events of my
switchboard will that disable the mouse wheel for the entire time I am in my
application? Or do I need to put it on every single form.

Thanks!
 
A

Al Camp

albycindy,
I'm not familiar with Stephen's code... but...
When the form closes (OnClose event), you should be able to put the
MouseWheel status back the way you want it.
 
S

Stephen Lebans

Yes, call the StopMousewheel and StartMouseWheel functions ONCE and only
ONCE within your entire application. Do not call the functions from every
single form but from only from the first form you open and the last form you
close. The Switchboard form fits this criteria perfectly.

--

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

Guest

Excellento! Thank you very much.

Stephen Lebans said:
Yes, call the StopMousewheel and StartMouseWheel functions ONCE and only
ONCE within your entire application. Do not call the functions from every
single form but from only from the first form you open and the last form you
close. The Switchboard form fits this criteria perfectly.

--

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top