how to know the user press the left button and the right button at the same time?

  • Thread starter Thread starter vulgate
  • Start date Start date
V

vulgate

i use

arg.button==( MouseButtons.Left+MouseButtons.Right)

but the system promote the the type cant +

who can help me ~
 
Hi there,
have you tried using the "bitwise or" operator (|) instead?

According to MSDN (look for "MouseButtons Enumeration"):

"Specifies constants that define which mouse button was pressed.
This enumeration has a FlagsAttribute attribute that allows a bitwise
combination of its member values."


Good luck!

-Matteo

--------------------
 
Back
Top