My.Computer.Mouse.ButtonsSwapped Property 

Gets a Boolean that indicates if the functionality of the left and right mouse buttons has been swapped.

' Usage
Dim value As Boolean = My.Computer.Mouse.ButtonsSwapped
' Declaration
Public ReadOnly Property ButtonsSwapped As Boolean

Return Value

A Boolean with a value True if the functionality of the left and right mouse buttons has been swapped; otherwise, False.

Exceptions

The following condition can cause an exception:

Remarks

The My.Computer.Mouse.ButtonsSwapped property:

  • Provides functionality similar to the MouseButtonsSwapped property.

  • Provides information about the computer that runs the code.

Example

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

Requirements

Namespace: Microsoft.VisualBasic.Devices

Class: Mouse

Assembly: Visual Basic Runtime Library (in Microsoft.VisualBasic.dll)

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

Permissions

No permissions are required.

See Also

Reference

My.Computer.Mouse Object
Microsoft.VisualBasic.Devices.Mouse.ButtonsSwapped