
650
|
Chapter 13: The ‘My’ Reference
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
• An exception is thrown if the computer does not have an installed mouse.
• Always use this property to detect the presence of a mouse wheel before using the
My.Computer.Mouse.WheelScrollLines property.
Related Framework Entries
• Microsoft.VisualBasic.Devices.Mouse.WheelExists Property
• System.Windows.Forms.SystemInformation.MouseWheelPresent Property
See Also
ButtonsSwapped Property, Mouse Object, WheelScrollLines Property
WheelScrollLines Property
Location
My.Computer.Mouse.WheelScrollLines
Syntax
Dim result As Integer = My.Computer.Mouse.WheelScrollLines
Description
On systems that have a “mouse wheel” included on the installed mouse, the
WheelScrollLines indicates how far the context should be scrolled when the wheel is
rotated one position.
Usage at a Glance
• This property is read-only.
• This property is only valid in non-server applications.
• An exception is thrown if the computer does not have an installed mouse.
• An exception is thrown if the installed mouse does not include a mouse wheel.
• Always use the My.Computer.Mouse.WheelExists property to detect the presence
of a mouse wheel before using the WheelScrollLines property.
Example
The following example displays the scroll amount for each mouse wheel rotation
position.
If My.Computer.Mouse.WheelExists ...