Mouse.ButtonsSwapped Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a Boolean
that indicates if the functionality of the left and right mouse buttons has been swapped.
public:
property bool ButtonsSwapped { bool get(); };
public bool ButtonsSwapped { get; }
member this.ButtonsSwapped : bool
Public ReadOnly Property ButtonsSwapped As Boolean
Property Value
A Boolean
with a value True
if the functionality of the left and right mouse buttons has been swapped; otherwise, False
.
Exceptions
The computer has no mouse installed.
Examples
This example uses the My.Computer.Mouse.ButtonsSwapped
property to determine if functionality of the left and right mouse buttons has been swapped.
If My.Computer.Mouse.ButtonsSwapped Then
MsgBox("Functionality of the mouse buttons is swapped.")
Else
MsgBox("Default functionality of the mouse buttons.")
End If
Remarks
The My.Computer.Mouse.ButtonsSwapped
property:
Provides functionality similar to the MouseButtonsSwapped property.
Provides information about the computer that runs the code.
Availability by Project Type
Project type | Available |
---|---|
Windows Application | Yes |
Class Library | Yes |
Console Application | Yes |
Windows Control Library | Yes |
Web Control Library | No |
Windows Service | Yes |
Web Site | No |