21 writes to Visible
System.Windows.Forms (11)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (7)
962Visible = false; 983Visible = false; 1299Visible = false; 1329Visible = false; 1938toplevel.Visible = false; 1947ActiveDropDowns[0].Visible = false; 1957dropDowns[i].Visible = false;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
416DropDown.Visible = false;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
293activeToolStripDropDown.Visible = false; 378activeDropDown.Visible = false;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.cs (1)
37_dropDown.Visible = value;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
361_dropDown.Visible = false;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
400_addItemButton.DropDown.Visible = false;
System.Windows.Forms.Tests (8)
System\Windows\Forms\AccessibleObjects\ToolStripDropDownItemAccessibleObjectTests.cs (2)
64control.DropDown.Visible = visible; 98control.DropDown.Visible = true;
System\Windows\Forms\ToolStripDropDownTests.cs (4)
2827Visible = visible 2870Visible = visible 3151Visible = false 4971control.Visible = true;
System\Windows\Forms\ToolStripTests.cs (2)
7235toolStrip.Visible = true; 7243toolStrip.Visible = true;
89 references to Visible
System.Windows.Forms (29)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
1998|| !OverflowButton.DropDown.Visible
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (6)
1134|| (dismissingItem is ToolStripSplitButton && !dismissingItem.DropDown.Visible) // clicking on the split button button dismisses 1358if (AutoClose && Visible & ToolStripManager.IsMenuKey(keyData)) 1414if (Visible) 1420if (Visible) 1644if (Visible) 1909if (Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
134if (DropDown.Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (7)
186if (HasDropDownItems && DropDown.Visible) 277return DropDown.OwnerItem == this && DropDown.Visible; 414if (_dropDown is not null && _dropDown.Visible) 433if (_dropDown is not null && _dropDown.Visible) 445if (DropDown.Visible) 697if (_dropDown is null || (!_dropDown.Visible)) 706if (_dropDown is not null && !_dropDown.Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (4)
67=> (VARIANT)!toolStripDropDown.Visible, 76if (_owner.DropDown.Visible) 86return _owner.DropDown.Visible ? ExpandCollapseState.ExpandCollapseState_Expanded : ExpandCollapseState.ExpandCollapseState_Collapsed; 211return _owner.DropDown.Visible
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
867showDropDown = !DropDown.Visible;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObject.cs (1)
28=> _owningToolStripOverflowButton.DropDown.Visible
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.cs (1)
28return _dropDown.Visible;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (4)
170protected internal override bool DismissWhenClicked => !DropDown.Visible; 181public bool DropDownButtonPressed => DropDown.Visible; 425if (!DropDown.Visible) 452if (DropDown.Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObject.cs (2)
64if (_owningToolStripSplitButton is not null && _owningToolStripSplitButton.DropDown is not null && _owningToolStripSplitButton.DropDown.Visible) 74return _owningToolStripSplitButton.DropDown.Visible ? ExpandCollapseState.ExpandCollapseState_Expanded : ExpandCollapseState.ExpandCollapseState_Collapsed;
System\Windows\Forms\MDI\MdiControlStrip.SystemMenuItem.cs (1)
30if (HasDropDownItems && DropDown.Visible)
System.Windows.Forms.Design (28)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
176if (ContextMenuStrip is not { Visible: true })
System\ComponentModel\Design\DesignerActionUI.cs (2)
571get => (_designerActionHost is not null && _designerActionHost.Visible); 750if (_designerActionHost is not null && _designerActionHost.Handle != 0 && _designerActionHost.Visible)
System\ComponentModel\Design\DesignerActionUI.DesignerActionToolStripDropDown.cs (1)
160if (Visible)
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
136if (parent is ToolStripDropDown parentDropDown && parentDropDown.Visible)
System\Windows\Forms\Design\ToolStripDesigner.cs (7)
756if (ToolStrip.CanOverflow && !ToolStrip.OverflowButton.DropDown.Visible) 767if (ToolStrip.OverflowButton.DropDown.Visible) 1019if (ToolStrip.CanOverflow && !ToolStrip.OverflowButton.DropDown.Visible) 1199if (ToolStrip.OverflowButton.DropDown.Visible) 2091if (dropDown.Visible) 2315if (ToolStrip.OverflowButton.DropDown.Visible) 2348if (!DontCloseOverflow && ToolStrip.OverflowButton.DropDown.Visible)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (3)
428if (comp is null && _dropDown.Visible) 460if (parent is not null && parent.Visible) 531if (!_dropDown.Visible)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
176if (strip.OverflowButton.DropDown.Visible)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (4)
536else if (!parentItem.DropDown.Visible && Host.GetDesigner(parentItem) is ToolStripMenuItemDesigner designer) 640if (parent is ToolStripDropDown parentDropDown && parentDropDown.Visible) 652if (selSvc.PrimarySelection is ToolStripDropDownItem dropDownItem && dropDownItem.DropDown.Visible) 1260if (!dropDownItem.DropDown.Visible
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (8)
1100if (dropDown.Visible) 1178if (dropDown is not null && dropDown.Visible) 1433if (item.DropDown.Visible) 2104if (!IsOnContextMenu && MenuItem.DropDown.Visible) 2224if (MenuItem.DropDown.Visible) 2418if (item.DropDown.Visible) 2562if (currentSelection is not null && !currentSelection.DropDown.Visible) 2569else if (currentDropDown is ContextMenuStrip && !currentDropDown.Visible)
System.Windows.Forms.Tests (32)
System\Windows\Forms\ControlTests.Methods.cs (2)
12590Assert.False(menu.Visible); 12670Assert.False(menu.Visible);
System\Windows\Forms\ToolStripDropDownTests.cs (26)
155Assert.False(control.Visible); 3049Assert.False(control.Visible); 3065Assert.False(control.Visible); 3077Assert.False(control.Visible); 3106Assert.False(control.Visible); 3123Assert.False(control.Visible); 3136Assert.False(control.Visible); 3162Assert.False(control.Visible); 3178Assert.False(control.Visible); 3190Assert.False(control.Visible); 3222Assert.False(control.Visible); 3246Assert.False(control.Visible); 3266Assert.False(control.Visible); 3293Assert.False(control.Visible); 3309Assert.False(control.Visible); 3321Assert.False(control.Visible); 3387Assert.False(control.Visible); 3404Assert.False(control.Visible); 3417Assert.False(control.Visible); 3450Assert.False(control.Visible); 3463Assert.False(control.Visible); 3495Assert.False(control.Visible); 3519Assert.False(control.Visible); 3539Assert.False(control.Visible); 3542Assert.False(control.Visible); 4982control.Visible.Should().BeFalse();
System\Windows\Forms\WebBrowserTests.cs (2)
4559Assert.False(menu.Visible); 4639Assert.False(menu.Visible);
TextBoxBaseTests.cs (2)
7014Assert.False(menu.Visible); 7101Assert.False(menu.Visible);