18 references to InMenuMode
System.Windows.Forms (18)
winforms\Managed\System\WinForms\MenuStrip.cs (1)
241
if (ToolStripManager.ModalMenuFilter.
InMenuMode
) {
winforms\Managed\System\WinForms\ToolStrip.cs (6)
906
return (ContainsFocus || (ToolStripManager.ModalMenuFilter.
InMenuMode
&& ToolStripManager.ModalMenuFilter.GetActiveToolStrip() == this));
1473
if (!IsDropDown && !ToolStripManager.ModalMenuFilter.
InMenuMode
) {
2864
if (!IsDropDown && ToolStripManager.ModalMenuFilter.
InMenuMode
) {
3020
bool inMenuMode = ToolStripManager.ModalMenuFilter.
InMenuMode
;
4065
if (wasInMenuMode == ToolStripManager.ModalMenuFilter.
InMenuMode
) {
5183
ownerToolStrip.BeginInvoke(new BooleanMethodInvoker(ownerToolStrip.RestoreFocusInternal), new object[]{ ToolStripManager.ModalMenuFilter.
InMenuMode
} );
winforms\Managed\System\WinForms\ToolStripManager.cs (9)
228
if (ModalMenuFilter.
InMenuMode
) {
845
Debug.Assert(!
InMenuMode
, "How did we get here if we're already in menu mode?");
847
if (!
InMenuMode
) {
897
if (
InMenuMode
) {
994
if (!
InMenuMode
&& MenuKeyToggle) {
1102
if (!
InMenuMode
&& menuKeyPressed) {
1166
if (!
InMenuMode
&& _inputFilterQueue.Count > 0) {
1172
if (!_caretHidden && toolStrip.IsDropDown &&
InMenuMode
) {
1738
return ToolStripManager.ModalMenuFilter.
InMenuMode
;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
1227
if (ToolStripManager.ModalMenuFilter.
InMenuMode
) {
1429
if (CurrentItem != null && !CurrentItem.IsDisposed && CurrentItem.Selected && CurrentItem.Enabled && ToolStripManager.ModalMenuFilter.
InMenuMode
) {