Select to view content in your preferred language

Add-In tool: how can I find out if left or right mouse button has been clicked?

639
1
06-21-2019 02:23 AM
BarbaraSchneider2
Occasional Contributor III

In an ArcMap Add-In, I created a Tool. In the OnMouseUp Event, I would like to find out if the right or left mouse button has been clicked:

protected override void OnMouseUp(MouseEventArgs arg)
{
}

This information should probably be in the MouseEventArgs, but I haven't found out where.

0 Kudos
1 Reply
by Anonymous User
Not applicable

Right mouse clicks will fire the OnContextMenu event.