Ive had this problem for a few days now, and I am all out of ideas. I am using the selection change event to display custom context menus depending on which pushpin the user rightclicks on. However, the default context menu pops up after my menu. Initially I though i could just use "cancel" in the before_click event, but if i cancel that event, then no selection_change event occurs and I get no menu at all.
I have gotten around this before by displaying my menu from the before_click function. That worked fine when there was only one context menu. But now I need to have a different menu for each pushpin set. I dont know of anyway to do that from the before_click event which is why i moved the code to the selection_change event.
I am using c# by the way.
Any help or ideas would be greatly appriciated.