-
Nov 25th, 2006, 12:20 PM
#1
Classic VB - How can I use the mouse-wheel in VB?
VB6 was released in 1998, before mice with wheels were generally available. Due to this, there is no built-in support for the mouse-wheel within most of VB6 (either in VB itself, or in your programs).
The code window in VB cannot be scrolled with the wheel, which can be frustrating! Luckily this can be 'fixed' fairly easily, see the following Microsoft article for instructions: http://support.microsoft.com/kb/837910
To make use of the mouse-wheel in your program (including several of the built-in controls) you will need to write fairly complex code, incorporating a few API's.
This may sound a bit daunting, but in the CodeBank forum there is a great piece of code already written for you: VB6 - MouseWheel with Any Control.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|