Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am developing a custom extension for ArcMAP in Arcgis 10, and would like to display my Custom Toolbar automatically instead of having the user to select it from the customize window. Is this possible?

Further more is it possible to hide the toolbar, when the extension is switched off from the Extensions window?

share|improve this question
see also this thread. – Kirk Kuykendall Apr 11 '12 at 22:00
up vote 3 down vote accepted

To complement @Kirk's answer, to show and hide the toolbar, you can try using ICommandBar.Dock and use the esriDockToggle constant (64) from the esriDockFlags enumeration to toggle its visibility. Have not tried this myself so if it doesn't work try some of the other constants.

share|improve this answer
While Kirk's answer was helpful, you answer about using ICommandBar.Dock, was what actually what I was looking for. – Devdatta Tengshe Apr 13 '12 at 3:34

I think this can be done in your implementation of the setter for IExtensionConfig.State. Since this gets called before the doc opens (and before the toolbar collection is initialized) your extension might need to listen to IDocumentEvents.OpenDocument and NewDocument. Accessing IDocument.Toolbars before one of these events has fired can cause problems.

share|improve this answer

Your Answer


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.