12 writes to AutoClose
System.Windows.Forms (2)
System\Windows\Forms\ContextMenuStrip.cs (1)
55contextMenuStrip.AutoClose = AutoClose;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
23AutoClose = false;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (3)
306_menuItem.DropDown.AutoClose = true; 593_dropDown.AutoClose = (bool)ShadowProperties[nameof(AutoClose)]; 609_dropDown.AutoClose = (bool)ShadowProperties[nameof(AllowDrop)];
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1601MenuItem.DropDown.AutoClose = false;
System.Windows.Forms.Tests (6)
System\Windows\Forms\ToolStripDropDownTests.cs (6)
625AutoClose = value 631control.AutoClose = value; 636control.AutoClose = !value; 647AutoClose = value 653control.AutoClose = value; 658control.AutoClose = !value;
16 references to AutoClose
System.Windows.Forms (8)
System\Windows\Forms\ContextMenuStrip.cs (1)
55contextMenuStrip.AutoClose = AutoClose;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (4)
947if (!AutoClose || !WorkingAreaConstrained) 1131if (AutoClose) 1358if (AutoClose && Visible & ToolStripManager.IsMenuKey(keyData)) 1653e.Cancel = e.CloseReason != ToolStripDropDownCloseReason.CloseCalled && !AutoClose;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
275if (DropDown.AutoClose || !IsInDesignMode || (IsInDesignMode && !IsOnDropDown))
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
376if (GetActiveToolStripInternal() is ToolStripDropDown activeDropDown && activeDropDown.AutoClose) 411if (!dropDown.AutoClose)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
364AutoClose = _dropDown.AutoClose;
System.Windows.Forms.Tests (7)
System\Windows\Forms\ToolStripDropDownTests.cs (7)
28Assert.True(control.AutoClose); 627Assert.Equal(value, control.AutoClose); 632Assert.Equal(value, control.AutoClose); 637Assert.Equal(!value, control.AutoClose); 649Assert.Equal(value, control.AutoClose); 654Assert.Equal(value, control.AutoClose); 659Assert.Equal(!value, control.AutoClose);