In the code editor, choose ContextMenu from the right-hand dropdown list and have it return False.
Private Function UIToolControl1_ContextMenu(ByVal x As Long, ByVal y As Long) As Boolean UIToolControl1_ContextMenu = False End Function Private Sub UIToolControl1_MouseDown(ByVal button As Long, ByVal shift As Long, ByVal x As Long, ByVal y As Long) If button = 2 Then UIToolControl1_ContextMenu x, y ElseIf button = 1 Then ' Whatever the tool does End If End Sub
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.