Public Function OnContextMenu(ByVal x As Integer, ByVal y As Integer) As Boolean Implements ESRI.ArcGIS.SystemUI.ITool.OnContextMenu ' Get the tool's context menu and show it. Dim uid As New UID uid.Value = "{" & ContextMenu.ClassId & "}" Dim menu As ICommandBar = DirectCast(m_application.Document.CommandBars.Find(uid), ICommandBar) menu.Popup() ' Return True so that ArcMap's Data Frame context menu is suppressed. Return True End Function
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.