I mean an action occur just when i use both of button in one time,For example use mouse left button and right button together to occur something in Windows Form If it is possible,How can i Do that? Please Guide me.
How can I use two button for one case in C#?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


VulpesRank #55 · 29.2K reputationPosted Jul 3, 2014, 2:19 AM EDT
This object has a property called 'Button' which tells you which button was pressed.
Check out this SO thread for how you can use the MouseDown and MouseUp events to determine whether the left and right buttons were pressed simultaneously:
http://stackoverflow.com/questions/3209217/detect-both-left-and-right-mouse-click-at-the-same-time