VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

MouseWheel

Jean-Pierre Perriere  (1 Submission)   Windows API Call/Explanation   Visual Basic 3.0   Advanced   Wed 3rd February 2021

Quick and dirty code to get MouseWheel event information without any ocx, just a few constants and lines of code...

Assumes
' 1 - Create a new project ' 2 - Add 3 PictureBox (Picture1, Picture2, Picture3) ' 3 - Add a TextBox (Text1) ' 4 - Paste code ' Run ' over PictureBox and watch cursors ' Wheeling moves vertical cursor ' Shift Key multiplies 10 times wheel action ' Ctrl Key drives action to horizontal cursor ' ' Over 'Spin'TextBox ' Click to enable and then 'Wheel' and Watch ' Shift Key multiplies 10 times wheel action ' Ctrl key multiplies 100 times wheel action

Side Effects
No side effect if used as in sample project... If U encounter any, or feel I may have some trouble, please let me know

Rate MouseWheel (4(4 Vote))
MouseWheel.bas

MouseWheel Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters