CodeItBetter Programming Another VB Programming Blog

How to Swap Mouse Buttons

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'System & API - How to Swap Mouse Buttons

Option Explicit
 
'Add two CommandButtons to your form. The first one is to swap the mouse buttons.
'The second one is to swap back.
'(remember to click with the right button, because the buttons had been swapped).
Declare Function SwapMouseButton& Lib "user32" (ByVal bSwap As Long)
 
Private Sub Command1_Click()
    Call SwapMouseButton&(1)
End Sub
 
Private Sub Command2_Click()
    Call SwapMouseButton&(0)
End Sub

Related posts:

  1. How to Get the number of Mouse Buttons
  2. How to Enable/Disable Mouse trails
  3. How to Check whether Mouse exist or not
  4. How to Set Mouse Cursor position
  5. How can i get the mouse to automatically click???? Like on its own.
  6. How to Set Mouse Double Click Time
  7. How to Show/Hide/Restore Mouse Cursor
  8. How to disable the Mouse until Reboot
  9. How to detect on which item the Mouse is hover on ListBox
  10. How to Move the Cursor to the Control that has focus

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.