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