VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A Simple Code to Swap the Left and Right Mouse Buttons

by Raghu (22 Submissions)
Category: Windows System Services
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 13th June 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

A Simple Code to Swap the Left and Right Mouse Buttons

API Declarations


'Declarations
Public Declare Function SwapMouseButton Lib "user32" Alias "SwapMouseButton" (ByVal bSwap As Long) As Long
Public Const MB_DEFBUTTON1 = &H0&
Public Const MB_DEFBUTTON2 = &H100&

Rate A Simple Code to Swap the Left and Right Mouse Buttons




SwapMouseButton MB_DEFBUTTON1 ' To Reset to Original Postion


Download this snippet    Add to My Saved Code

A Simple Code to Swap the Left and Right Mouse Buttons Comments

No comments have been posted about A Simple Code to Swap the Left and Right Mouse Buttons. Why not be the first to post a comment about A Simple Code to Swap the Left and Right Mouse Buttons.

Post your comment

Subject:
Message:
0/1000 characters