开发者

Checking clicks against MouseButtons.Right

开发者 https://www.devze.com 2023-03-24 22:02 出处:网络
In a mouseclick handler, is the correct way to know whether to show a context menu to check the event\'s Button property against MouseButtons.Right? If so, wouldn\'t there be a problem when a (probabl

In a mouseclick handler, is the correct way to know whether to show a context menu to check the event's Button property against MouseButtons.Right? If so, wouldn't there be a problem when a (probably left-handed) user tries to use your application with the mouse buttons reverse开发者_如何学God?


No it won't be a problem if mouse buttons are reversed.

Lets says I have reversed my mouse buttons, so when I press left mouse button, Windows will raise event for MouseButtons.Right and similarly MouseButtons.Left when right button is pressed.

0

精彩评论

暂无评论...
验证码 换一张
取 消