ccposton

Hide a Toolbar Item?

Discussion created by ccposton on Mar 6, 2012
Latest reply on Mar 7, 2012 by ccposton
In an ArcEngine application, if I add a command (or tool) to a toolbar can I then hide that command (or tool)?

I can do this:

int itemIndex = toolbar.AddItem("esriControls.ControlsMapFullExtentCommand", 0, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly);
IToolbarItem item = toolbar.GetItem(elementTool);


But I see nothing in IToolbarItem that sets visibility.  Is this even possible?

Outcomes