Disable mousewheel for one form only

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
Douglas J. Steele said:
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.
 
Back
Top