1 write to CloseReason
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownClosingEventArgs.cs (1)
12CloseReason = reason;
9 references to CloseReason
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1653e.Cancel = e.CloseReason != ToolStripDropDownCloseReason.CloseCalled && !AutoClose;
System.Windows.Forms.Design (7)
System\ComponentModel\Design\DesignerActionUI.cs (2)
587if (e.CloseReason == ToolStripDropDownCloseReason.ItemClicked) 592if (e.CloseReason == ToolStripDropDownCloseReason.Keyboard)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (3)
78if (e.CloseReason == ToolStripDropDownCloseReason.AppFocusChange && _cancelClose) 87else if (e.CloseReason is ToolStripDropDownCloseReason.AppFocusChange or ToolStripDropDownCloseReason.AppClicked) 90if (Handle == hwndActivating && e.CloseReason == ToolStripDropDownCloseReason.AppClicked)
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1988e.Cancel = (e.CloseReason == ToolStripDropDownCloseReason.ItemClicked);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2003e.Cancel = (e.CloseReason == ToolStripDropDownCloseReason.ItemClicked);
System.Windows.Forms.Tests (1)
System\Windows\Forms\ToolStripDropDownClosingEventArgsTests.cs (1)
15Assert.Equal(closeReason, e.CloseReason);