Hi there
We wrote an extension, which sets up some custom Toolbars at runtime. The new Toolbars are created as follows:
ICommandBar newCommandBar = _applicationReference.Document.CommandBars.Create(myToolbarName, esriCmdBarType.esriCmdBarTypeToolbar);
As the ICommandBar is also an ICommandItem I later try to delete the Toolbar:
((ICommandItem)newCommandBar).Delete();
But this doesn't work. The toolbar still exists an is shown up in ArcMap...
Does anybody know how to remove them or is it a bug in ArcGIS 9.4 Beta 2??
Any help needed... Thanks