Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
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
Example
The following example displays the scroll amount for each mouse wheel rotation position. If My.Computer.Mouse.WheelExists Then MsgBox("Mouse wheel scroll amount is " & _ Abs(My.Computer.Mouse.WheelScrollLines) & ".") Else MsgBox("No mouse scroll wheel present.") End If
Related Framework Entries
See Also
ButtonsSwapped Property, Mouse Object, WheelExists Property |
Категории