Mouse Scroll Stop

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wayneyh
    New Member
    • Mar 2008
    • 67

    #1

    Mouse Scroll Stop

    Hi All

    I want to stop the scroll wheel on the mouse. I have looked through the forum and downloaded the file from MouseWheelOnOff. I have entered the code

    Code:
    Private Sub Form_Load() 
       'Turn off Mouse Scroll 
        blRet = MouseWheelOFF 
    End Sub
    to my form and imported the modMouseHook. I have the .dll in the same folder as the db and it does not disable the mouse wheel. Have i missed something?

    Regards
    Wayne
  • puppydogbuddy
    Recognized Expert Top Contributor
    • May 2007
    • 1923

    #2
    Did you put in the code to turn the mousewheel back on when you exit the current session? Did you load the latest version...A2K+?

    Comment

    • puppydogbuddy
      Recognized Expert Top Contributor
      • May 2007
      • 1923

      #3
      Also, the code is supposed to be loaded only once per session. You've placed the code in the form_load event instead of behind a button as shown. Does your form get loaded more than once during a session?

      Comment

      • Wayneyh
        New Member
        • Mar 2008
        • 67

        #4
        Hi puppydogbuddy
        Yes to your first question. For your second question, i have just tried it with a button and it still doesn't work.

        I have read that you might have to reference the .dll file. When i try this it it fails.

        Anymore ideas?

        Regards
        Wayne

        Comment

        • puppydogbuddy
          Recognized Expert Top Contributor
          • May 2007
          • 1923

          #5
          Hi Wayne,
          Leban's says the latest version contains an optional parameter to turn the wheel off for subforms. His instructions say that you have to uninstall all previous versions of the Dll. Have you installed the latest version....and did you set the optional parameter? If you can't identify and set the optional parameter Leban's mentioned, I would uninstall the dll you have now, go to Leban's web page, and download and re-install the latest A2K version.

          Comment

          • missinglinq
            Recognized Expert Specialist
            • Nov 2006
            • 3533

            #6
            That's good to know, PDB! Didn't know Lebans had updated it with the option. I've used it for years without problems, but, of course, I'm still using the version I downloaded years ago!

            Linq ;0)>

            Comment

            Working...