Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / September 2007

Tip: Looking for answers? Try searching our database.

Disable mousewheel for one form only

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mcrawford - 07 Sep 2007 18:38 GMT
I have a form that I wish to disable the wheelmouse on. I have followed the
directions given here: http://www.lebans.com/mousewheelonoff.htm.

However...

This particular form will be left open most of the day. From this form users
can enter new service logs, click a "save" button and the form remains open
for the next entry.

As I mentioned, I followed the instructions from www.lebans.com, but when I
then go to a different form the wheelmouse is disabled, but I want it to be
active.

My question is, can the wheelmouse be disabled on only one form, or does it
have to apply to all forms?

I inserted the code on the forms OnLoad event, should it be somewhere else?

This is what is in the Form:

Private Sub Form_Load()
' Turn the MouseWheel Off
Dim blRet As Boolean
blRet = MouseWheelOFF
End Sub
Douglas J. Steele - 07 Sep 2007 18:54 GMT
I don't have MouseWheelOnOff handy, but I recall that you need to enable it
when the form loads, and disable it when the form unloads.

Try putting those statements into the form's Activate (or GotFocus) and Lost
Focus events instead.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>I have a form that I wish to disable the wheelmouse on. I have followed the
> directions given here: http://www.lebans.com/mousewheelonoff.htm.
[quoted text clipped - 27 lines]
> blRet = MouseWheelOFF
> End Sub
Ken Snell (MVP) - 07 Sep 2007 19:31 GMT
>I don't have MouseWheelOnOff handy, but I recall that you need to enable it
>when the form loads, and disable it when the form unloads.

This is correct.
Signature


       Ken Snell
<MS ACCESS MVP>

Mcrawford - 07 Sep 2007 19:50 GMT
Perfect! I used the Active and Deactive events.

Thanks so much!

> I don't have MouseWheelOnOff handy, but I recall that you need to enable it
> when the form loads, and disable it when the form unloads.
[quoted text clipped - 33 lines]
> > blRet = MouseWheelOFF
> > End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.