apply control panel settings
C#
3
Posts
2
Posters
0
Views
1
Watching
-
hi, I simply want to change the registry value "swapmousebuttons", I can do this. however I want to apply this setting without rebooting or logging off, much like the windows control panel does. how is this done? thanks for your help. Stephen
You can use
SwapMouseButton
Api function[DllImport("user32.dll")] static extern bool SwapMouseButton(bool fSwap);
and somewhere write code like that
private void button3_Click(object sender, System.EventArgs e) { SwapMouseButton(true); }
To set it back pass
false
value SwapMouseButton Function[^] MCAD -
You can use
SwapMouseButton
Api function[DllImport("user32.dll")] static extern bool SwapMouseButton(bool fSwap);
and somewhere write code like that
private void button3_Click(object sender, System.EventArgs e) { SwapMouseButton(true); }
To set it back pass
false
value SwapMouseButton Function[^] MCAD