1

I have developed an AddIn for ArcGIS 10.4 using Visual Studio 2015. My AddIn has several "buttons" defined in the config.esriaddinx XML file.

It is possible to completely hide a button when ArcMap starts? I know that I can override the button OnUpdate() event to disable the command, but I want to make it invisible to users.

My AddIn does have an Extension and I'm hoping I can put some code in the extension OnStartUp() event to either hide or remove a button.

4
  • 2
    Just thinking out aloud so do not know what the exact commands are (or if possible, but I would imagine it is). You don't hide buttons you would remove it from it's parent container, in this case the toolbar. Explore that.
    – Hornbydd
    Commented Apr 13, 2018 at 18:28
  • Further to my comment have a look here.
    – Hornbydd
    Commented Apr 14, 2018 at 14:24
  • Thanks for the info! Do you know if this permanently removes them from the command bar? Or is it just for the current ArcMap session?
    – narmaps
    Commented Apr 16, 2018 at 16:10
  • Good question,I would imagine it depends if the custom toolbar was stored in the MXD or normal template. If in the MXD and the MXD is saved then I would expect it to be permanently removed.
    – Hornbydd
    Commented Apr 16, 2018 at 16:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.