VERSION 5.00
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Mouse Button Swap"
   ClientHeight    =   480
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   3240
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   480
   ScaleWidth      =   3240
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdNoSwap 
      Caption         =   "Unswap Buttons"
      Height          =   465
      Left            =   1635
      TabIndex        =   1
      Top             =   15
      Width           =   1605
   End
   Begin VB.CommandButton cmdSwap 
      Caption         =   "Swap Buttons"
      Height          =   465
      Left            =   15
      TabIndex        =   0
      Top             =   15
      Width           =   1605
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function SwapMouseButton Lib "user32" (ByVal bSwap As Long) As Long

Private Sub cmdSwap_Click()
    SwapMouseButton 1  'swaps it
End Sub

Private Sub cmdNoSwap_Click()
SwapMouseButton 0  'unswap it
End Sub
