scrolling

D

Diogo

Hi,
Need some help.
I'm using the mouse hook dll, to prevent mouse scrolling.
How do I make it load by default.
I want to do the reverse, I want the mouse scrolling to be disabled by
default, and activate it if I want.
 
S

Stephen Lebans

In the Load event of the very first form that your application opens place
this code:

' Turn the MouseWheel Off
Dim blRet As Boolean
blRet = MouseWheelOFF


In the Unload event of the very last form you close place this code:

' Turn the MouseWheel On
Dim blRet As Boolean
blRet = MouseWheelON


--

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