How do I swap left and right mouse buttons in .NET (preferably C#)? Basically the result should be the same as if the user checked the ‘Switch primary and secondary buttons’ checkbox in the Mouse Properties through the control panel. I’m dealing with Windows XP, in case that makes a difference.
Share
You can use a Windows API call to
SwapMouseButton: