private HideDropDown ( ToolStripDropDownCloseReason reason ) : void | ||
reason | ToolStripDropDownCloseReason | |
return | void |
internal void HideDropDown (ToolStripDropDownCloseReason reason)
{
if (this.drop_down == null || !this.DropDown.Visible)
return;
// OnDropDownHide is called before actually closing DropDown
this.OnDropDownHide (EventArgs.Empty);
this.DropDown.Close (reason);
this.is_pressed = false;
this.Invalidate ();
}
ToolStripDropDownItem::HideDropDown ( ) : void |
private void HideSiblingDropDowns(ToolStripDropDownItem item) { try { ToolStripItem menuItem = this.MenuItem; while (item != menuItem) { item.HideDropDown(); if (item.Owner is ToolStripDropDown) { item = (ToolStripDropDownItem) ((ToolStripDropDown) item.Owner).OwnerItem; } else { return; } } } catch (Exception exception) { if (System.Windows.Forms.ClientUtils.IsCriticalException(exception)) { throw; } } }