System.Windows.Forms.CommandBarContextMenu.MenuBarItem.OnPopup C# (CSharp) Method

OnPopup() protected method

protected OnPopup ( EventArgs e ) : void
e System.EventArgs
return void
            protected override void OnPopup(EventArgs e)
            {
                CommandBarMenu menu = this.item as CommandBarMenu;
                if (menu != null)
                {
                    menu.PerformDropDown(EventArgs.Empty);
                }

                base.OnPopup(e);
                this.UpdateItems();
            }