MenuBar (1) 썸네일형 리스트형 MenuBar에 추가하기 // If the menu already exists, remove it. private void CheckIfMenuBarExists() { try { //Menu가 있는지 체크 해서 있으면 지워버렷!! CommandBarPopup foundMenu = (CommandBarPopup)this.Application.CommandBars.ActiveMenuBar.FindControl(MsoControlType.msoControlPopup, System.Type.Missing, menuTag, true, true); if (foundMenu != null) { foundMenu.Delete(true); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }.. 이전 1 다음