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

--------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top