3 writes to DropDown
System.Windows.Forms (3)
winforms\Managed\System\WinForms\MDIControlStrip.cs (1)
185system.DropDown = ToolStripDropDownMenu.FromHMenu(UnsafeNativeMethods.GetSystemMenu(new HandleRef(this, Control.GetSafeHandle(target)), /*bRevert=*/false), target);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
65DropDown = CreateDefaultDropDown();
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (1)
320 ((ToolStripMenuItem)itemToAdd).DropDown = FromHMenu(info.hSubMenu, targetWindow);
83 references to DropDown
System.Windows.Forms (83)
winforms\Managed\System\WinForms\MDIControlStrip.cs (5)
176system.DropDown.Items.Clear(); 177system.DropDown.Dispose(); 188system.DropDown.Dispose(); 239this.DropDown.SelectNextToolStripItem(null, true); 245if (HasDropDownItems && DropDown.Visible) {
winforms\Managed\System\WinForms\MdiWindowListStrip.cs (2)
70MergeItem.DropDown.SuspendLayout(); 135MergeItem.DropDown.ResumeLayout(false);
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (1)
1545ToolStripDropDownMenu menu = this.zoomToolStripSplitButton.DropDown as ToolStripDropDownMenu;
winforms\Managed\System\WinForms\ToolStrip.cs (11)
1811this.OverflowButton.DropDown.ShowItemToolTips = value; 2168CommonProperties.xClearPreferredSizeCache(this.OverflowButton.DropDown); 2169this.OverflowButton.DropDown.LayoutRequired = true; 2172LayoutTransaction.DoLayout(this.OverflowButton.DropDown, e.Item, PropertyNames.Items); 2173this.OverflowButton.DropDown.Invalidate(); 2182this.OverflowButton.DropDown.LayoutRequired = true; 2189||!this.OverflowButton.DropDown.Visible 2190|| !this.OverflowButton.DropDown.IsHandleCreated; 2199return (toolStripOverflowButton == null || !toolStripOverflowButton.HasDropDown) ? null : toolStripOverflowButton.DropDown as ToolStripOverflow; 2661OverflowButton.DropDown.HandleItemClick(dismissingItem); 4401if (item is ToolStripControlHost && this.OverflowButton.DropDown.IsRestrictedWindow) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
840return ownerItem.Owner.OverflowButton.DropDown; 1368|| (dismissingItem is ToolStripSplitButton && !dismissingItem.DropDown.Visible) // clicking on the split button button dismisses
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (3)
128if (DropDown.Visible) { 129ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked); 148ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (37)
164if (HasDropDownItems && DropDown.Visible) { 165DropDown.Location = DropDownLocation; 243return DropDown.Items; 282if (DropDown.AutoClose || !IsInDesignMode || (IsInDesignMode && !IsOnDropDown)) { 283return DropDown.OwnerItem == this && DropDown.Visible; 382Rectangle dropDownBounds = new Rectangle(Point.Empty, DropDown.GetSuggestedSize()); 419DropDown.Visible = false; 449if (DropDown.Visible) { 450LayoutTransaction.DoLayout(DropDown, this, PropertyNames.RightToLeft); 453CommonProperties.xClearPreferredSizeCache(DropDown); 454DropDown.LayoutRequired = true; 462if (HasDropDown && DropDown.IsAutoGenerated) { 463DropDown.DoLayoutIfHandleCreated(new ToolStripItemEventArgs(this)); 494if (DropDown.OwnerItem == this) { 508if (DropDown.OwnerItem == this) { 512if (!DropDown.IsAutoGenerated) { 513DropDown.OwnerItem = null; 528if (DropDown.OwnerItem == this) { 537return DropDown.ProcessCmdKeyInternal(ref m, keyData); 563this.DropDown.SelectNextToolStripItem(null, true); 585this.DropDown.SelectNextToolStripItem(null, true); 692if (this.DropDown == this.ParentInternal) { 722KeyboardToolTipStateMachine.Instance.Hook(this.DropDown, toolTip); 727KeyboardToolTipStateMachine.Instance.Unhook(this.DropDown, toolTip); 747foreach (ToolStripItem childItem in item.DropDown.Items) { 842if (owner != null && owner.DropDown != null && owner.DropDown.Visible) { 843owner.DropDown.Close(); 849return owner.DropDown.Visible ? UnsafeNativeMethods.ExpandCollapseState.Expanded : UnsafeNativeMethods.ExpandCollapseState.Collapsed; 857return owner.DropDown.AccessibilityObject.GetChild(index); 872if (owner.DropDown.LayoutRequired) { 873LayoutTransaction.DoLayout(owner.DropDown, owner.DropDown, PropertyNames.Items); 875return owner.DropDown.AccessibilityObject.GetChildCount(); 913var toolStripAccessibleObject = owner.DropDown.AccessibilityObject as ToolStrip.ToolStripAccessibleObject; 922if (owner == null || owner.DropDown == null) {
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
3844parent = (IsOnOverflow && Owner != null)? Owner.OverflowButton.DropDown : Owner;
winforms\Managed\System\WinForms\ToolStripManager.cs (2)
1964tsddownSrc.DropDown.SuspendLayout(); 1979tsddownSrc.DropDown.ResumeLayout();
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (4)
859DropDown.SelectNextToolStripItem(null, /*forward=*/true); 967showDropDown = !DropDown.Visible; 989ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked); 1174DropDown.SelectNextToolStripItem(null, /*forward=*/true);
winforms\Managed\System\WinForms\ToolStripOverflowButton.cs (1)
52this.DropDown.Dispose();
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (12)
206return DropDown.Visible != true; 234return DropDown.Visible; 517if (!DropDown.Visible) { 545if (DropDown.Visible) { 550ToolStripManager.ModalMenuFilter.CloseActiveDropDown(DropDown, ToolStripDropDownCloseReason.AppClicked); 844if (ownerItem != null && ownerItem.DropDown != null && ownerItem.DropDown.Visible) { 845ownerItem.DropDown.Close(); 851return ownerItem.DropDown.Visible ? UnsafeNativeMethods.ExpandCollapseState.Expanded : UnsafeNativeMethods.ExpandCollapseState.Collapsed; 858return DropDownItemsCount > 0 ? ownerItem.DropDown.Items[0].AccessibilityObject : null; 860return DropDownItemsCount > 0 ? ownerItem.DropDown.Items[ownerItem.DropDown.Items.Count - 1].AccessibilityObject : null;
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
374item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null; 499item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null;