Check whether a mouse button is down.

To check whether a mouse button is down use the static Control.MouseButtons property.

Example:

if ((Control.MouseButtons & MouseButtons.Right ) == MouseButtons.Right )
{
..
}

Leave a Reply

Your email address will not be published. Required fields are marked *