开发者

Checking clicks against MouseButtons.Right

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜