Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

How is it possible to delete a custom root menu developed in VS?

I have gone through some walkthroughs and added an add-in that includes a button like so:

    <AddIn language="CLR" library="CustomUIElements.dll" namespace="CustomUIElements">
    <ArcMap>
      <Commands>
        <Button id="CustomUIElements_ZoomToLayerButton" 
          class="ZoomToLayerButton" 
          message="Zoom to selected layer" 
          caption="ZoomToLayer" 
          tip="Zoom to default extent" 
          category="Add-In Controls" 
          image="Images\ZoomToLayerButton.png">
          <Help heading="Zoom To Selected Layer">Set's the extent of selected layer</Help>
        </Button>        
      </Commands>
      <Menus>
        <Menu id="CustomUIElements_Zoom_Commands" caption="Zoom Commands" isRootMenu="true">
          <Items>
            <Button refID="CustomUIElements_ZoomToLayerButton" />
          </Items>
        </Menu>
      </Menus>
    </ArcMap>
  </AddIn>

Now ArcMap has the menu "Zoom Commands" but how do I remove it?

share|improve this question
1  
Seems that this can be solved by just running a 'Clean' on the solution in VS. The ArcGIS SDK seems to take care of unregistering and removing the menu from ArcMap. –  leon Sep 12 '12 at 13:22

1 Answer 1

up vote 3 down vote accepted

I guess I could just post my comment as an answer:

Perform a 'Clean' on the solution in Visual Studio. The ArcGIS SDK seems to take care of unregistering and removing the menu from ArcMap after the clean in Visual Studio has completed.

share|improve this answer
2  
You should also accept this answer. –  user3461 Sep 13 '12 at 15:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.