Mouse Wheel

G

Guest

Hi All,

I was using examples and MouseHook.dll to disable mouse wheel in a form.

I put a code in the form on "Current"

it works fine in MDB but it is not working in MD

Help??????????????
 
S

Stephen Lebans

Why put the code in the Current event when the sample code on the Web
site and the code behind the sample Forms shows you EXACTLY where to
place the code!!!!!!!

Here is sample code that can be placed behind CommandButton controls.
You could also place this code in the Load event of a single Form.
Remember you need to call these functions only ONE TIME. The MouseHook
will look after the MouseWheel messages for all forms that you have open
now or at any time during your current session. Remember to turn the
MouseWheel back on before you exit the current session!

Private Sub Command14_Click()
' Turn the MouseWheel Off
Dim blRet As Boolean
blRet = MouseWheelOFF
End Sub

Or if you will be running multiple

--

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