Select to view content in your preferred language

Remove / hide CommandBar(s) when built-in CommandItem is disabled.

733
1
04-12-2010 09:07 PM
ChrisWheldon
Emerging Contributor
Hi All,

Simple really (in concept). I have an open edit session and I close it saving edits or not. When the edit session closes I want a number of command bars to remove / hide themselves (e.g. the editor, ETGeoTools & Advanced editing toolbars). This is easy enough to code in a VBA module but I am having problems referencing the code to the built-in editor command item. I have dabbled with the ArcID module with no joy.

Using:
IEditor
ICommandBars
ICommandBar
ICommandItem

Thanks for any assistance.

Chris
0 Kudos
1 Reply
AlexanderGray
Honored Contributor
Hi Chris,

I usually use the guid when looking for a commandbar (toolbar.)  The full list should be in your registry, I usually do a search for "CommandBarNameCache" key.   I then do a Icommandbars find using the guid in there.
0 Kudos