I have this code to know if a toolbar is displaying:
IApplication m_aplication = ArcMap.Application;
ICommandBar versionToolbar = GetToolbarByName(m_aplication, "esriArcMapUI.VersionToolbar");
if (versionToolbar.IsVisible()){
versionToolbar.Dock(esriDockFlags.esriDockHide);
}
I can hide a toolbar, but I need to know when a toolbar is added to the desktop view, for example when the user check a toolbar in customize option:
I have this extension class:
public sealed class eManager : ESRI.ArcGIS.Desktop.AddIns.Extension { protected override void OnStartup() { MessageBox.Show("on Start up eManager"); } }
but the event doesn't work