497 writes to Visible
PresentationUI (33)
MS\Internal\Documents\RMEnrollmentPage1.cs (1)
35_pictureBox.Visible = false;
MS\Internal\Documents\RMEnrollmentPage2.cs (3)
36_pictureBox1.Visible = false; 37_pictureBox2.Visible = false; 38_pictureBox4.Visible = false;
MS\Internal\Documents\RMPublishingDialog.cs (9)
601flowLayoutPanelUnrestricted.Visible = true; 602flowLayoutPanelPermissions.Visible = false; 603flowLayoutPanelTemplate.Visible = false; 610flowLayoutPanelUnrestricted.Visible = false; 611flowLayoutPanelPermissions.Visible = true; 612flowLayoutPanelTemplate.Visible = false; 617flowLayoutPanelUnrestricted.Visible = false; 618flowLayoutPanelPermissions.Visible = false; 619flowLayoutPanelTemplate.Visible = true;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (2)
147this.flowLayoutPanelPermissions.Visible = false; 157this.flowLayoutPanelTemplate.Visible = false;
MS\Internal\Documents\SignatureSummaryDialog.cs (16)
56_buttonSign.Visible = false; 57_buttonViewCert.Visible = false; 58_buttonRequestAdd.Visible = true; 59_buttonRequestDelete.Visible = true; 65_buttonRequestAdd.Visible = false; 66_buttonRequestDelete.Visible = false; 67_buttonSign.Visible = true; 68_buttonViewCert.Visible = true; 203_buttonSign.Visible = false; 204_buttonViewCert.Visible = false; 205_buttonRequestAdd.Visible = true; 206_buttonRequestDelete.Visible = true; 213_buttonRequestAdd.Visible = false; 214_buttonRequestDelete.Visible = false; 215_buttonSign.Visible = true; 216_buttonViewCert.Visible = true;
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (2)
132_buttonRequestAdd.Visible = false; 211Visible = false;
System.Windows.Forms (80)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
244control.Visible = value;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
967_control.Visible = false; 1756_control.Visible = visible;
System\Windows\Forms\Application.MarshallingControl.cs (1)
18Visible = false;
System\Windows\Forms\Application.ParkingWindow.cs (1)
28Visible = false;
System\Windows\Forms\Application.ThreadContext.cs (2)
733ApplicationContext.MainForm.Visible = true; 804CurrentForm.Visible = true;
System\Windows\Forms\Control.cs (3)
5694Visible = false; 9349Visible = true; 10586Visible = true;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
464_horizScrollBar.Visible = false; 471_vertScrollBar.Visible = false;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (5)
10328_horizScrollBar.Visible = true; 10333_horizScrollBar.Visible = false; 10370_vertScrollBar.Visible = true; 10377_vertScrollBar.Visible = false; 19893_editingPanel.Visible = true;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
2476dgv.EditingControl.Visible = true; 2478dgv.EditingPanel.Visible = false;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
224_commandsPane.Visible = false; 672_helpPane.Visible = value;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (3)
48Visible = value && WouldBeVisible; 178Visible = false; 194Visible = true;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (2)
89_detailsTextBox.Visible = !_detailsTextBox.Visible; 258Visible = false
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (2)
55Visible = false; 69Visible = true;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (22)
324_listBox.Visible = true; 765_dropDownHolder.Visible = false; 844EditTextBox.Visible = false; 854DialogButton.Visible = false; 861DropDownButton.Visible = false; 872control.Visible = false; 898control.Visible = true; 908control.Visible = false; 1414_dropDownHolder.Visible = false; 1457_dropDownHolder.Visible = true; 2315DropDownListBox.Visible = false; 2382ToolTip.Visible = false; 3779toolTip.Visible = false; 3799toolTip.Visible = true; 4165EditTextBox.Visible = false; 4166DialogButton.Visible = false; 4167DropDownButton.Visible = false; 4176EditTextBox.Visible = editVisible; 4177DialogButton.Visible = dialogButtonVisible; 4178DropDownButton.Visible = dropDownButtonVisible; 4368EditTextBox.Visible = false; 4825ScrollBar.Visible = hidden;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
62Visible = false; 647control.Visible = true;
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
468set => base.Visible = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (4)
161BottomToolStripPanel.Visible = value; 279LeftToolStripPanel.Visible = value; 306RightToolStripPanel.Visible = value; 335TopToolStripPanel.Visible = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (2)
38c.Visible = true; 834ControlInternal.Visible = visible;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
863set => base.Visible = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
124Control.Visible = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (2)
141c.Visible = false; 181toolStrip.Visible = settings.Visible;
System\Windows\Forms\Design\ComponentEditorPage.cs (3)
21Visible = false; 116Visible = true; 130Visible = false;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (2)
321_details.Visible = _detailsVisible; 378_details.Visible = _detailsVisible;
System\Windows\Forms\Form.cs (4)
1471Visible = false; 1521Visible = oldVisibleBit; 3335Visible = true; 5427Visible = true;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
263set => base.Visible = value;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.BackgroundThread.cs (1)
68_dialog.Visible = true;
System\Windows\Forms\Printing\PrintPreviewControl.cs (4)
72Visible = false, 85Visible = false, 798_hScrollBar.Visible = horizontalScrollNeeded; 815_vScrollBar.Visible = verticalScrollNeeded;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
526set => base.Visible = value;
System\Windows\Forms\SendKeys\SendKeys.SKWindow.cs (1)
18Visible = false;
System.Windows.Forms.Design (54)
System\ComponentModel\Design\ByteViewer.cs (2)
451_scrollBar.Visible = false; 465Visible = false
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (2)
134_dropDownHolder.Visible = false; 466Visible = false;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (4)
130Visible = false; 151Visible = true; // NOTE: Do this AFTER creating handle and setting parent 175Visible = false; 187toplevel.Visible = false;
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
118_subtitleLabel.Visible = (_subtitleLabel.Text.Length != 0);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (6)
39Visible = false 51Visible = false 134_readOnlyTextBoxLabel.Visible = true; 135_textBox.Visible = false; 142_readOnlyTextBoxLabel.Visible = false; 145_textBox.Visible = true;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
235currentControl.Visible = true; 257currentControl.Visible = true; 1118c.Visible = show;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
159control.Visible = true;
System\Windows\Forms\Design\ComponentTray.cs (1)
198control.Visible = shouldDisplay;
System\Windows\Forms\Design\ControlDesigner.cs (2)
983Control.Visible = true; 2499c.Visible = false;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
423_helpTextPanel.Visible = (showDataSources);
System\Windows\Forms\Design\DesignerFrame.cs (4)
73designerHolder.Visible = false; 108_designer.Visible = true; 440control.Visible = false; 454c.Visible = true;
System\Windows\Forms\Design\FormatControl.cs (11)
253decimalPlacesUpDown.Visible = true; 257decimalPlacesUpDown.Visible = false; 264thirdRowLabel.Visible = true; 267_customStringTextBox.Visible = true; 278thirdRowLabel.Visible = false; 279_customStringTextBox.Visible = false; 291dateTimeFormatsListBox.Visible = true; 298dateTimeFormatsListBox.Visible = false; 301secondRowLabel.Visible = secondRowLabel.Text.Length > 0; 348_customStringTextBox.Visible = false; 352dateTimeFormatsListBox.Visible = false;
System\Windows\Forms\Design\SelectionUIService.cs (4)
529Visible = false; 885set => Visible = value; 1095Visible = false; 1150Visible = _savedVisible;
System\Windows\Forms\Design\ToolStripDesigner.cs (6)
452Control.Visible = value; 2022_editorNode.Control.Visible = true; 2309ToolStrip.Visible = _currentVisible; 2312ToolStrip.Parent.Visible = _currentVisible; 2360Control.Visible = true; 2365ToolStrip.Parent.Visible = true;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (3)
311_designMenu.Visible = false; 381Visible = false, 651_designMenu.Visible = true;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1364host.Control.Visible = false;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
137Control.Visible = value;
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1494_miniToolStrip.Visible = true;
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\InheritedPropertyDescriptorTests.cs (1)
65control.Visible = !control.Visible;
System.Windows.Forms.Tests (328)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
426Visible = false 666Visible = false
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (3)
25_form.Visible = true; 29_control1.Visible = true; 33_control2.Visible = true;
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (4)
124"invisible" => new Button() { Visible = false }, 136form.Visible = true; 156form.Visible = true; 157control.Visible = true;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
314scrollBar.Visible = true; 326scrollBar.Visible = false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
352scrollBar.Visible = true; 364scrollBar.Visible = false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
324scrollBar.Visible = true; 336scrollBar.Visible = false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
339scrollBar.Visible = true; 351scrollBar.Visible = false;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
244scrollBar.Visible = true; 256scrollBar.Visible = false;
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarChildAccessibleObjectTests.cs (2)
34control.Visible = false; 77control.Visible = isVisible;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarChildAccessibleObjectTests.cs (2)
33control.Visible = false; 76control.Visible = isVisible;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (2)
354trackBar.Visible = true; 366trackBar.Visible = false;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (2)
355trackBar.Visible = true; 367trackBar.Visible = false;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (2)
217trackBar.Visible = true; 229trackBar.Visible = false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
298scrollBar.Visible = true; 310scrollBar.Visible = false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
336scrollBar.Visible = true; 348scrollBar.Visible = false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
308scrollBar.Visible = true; 320scrollBar.Visible = false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
323scrollBar.Visible = true; 335scrollBar.Visible = false;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
244scrollBar.Visible = true; 256scrollBar.Visible = false;
System\Windows\Forms\ButtonBaseTests.cs (43)
829Visible = visible, 866Visible = visible, 903Visible = visible, 957Visible = visible, 1399Visible = visible 1512Visible = visible, 1553Visible = visible, 1615Visible = visible 1666Visible = visible, 1720Visible = visible, 2814Visible = visible, 2847Visible = visible, 2869Visible = visible, 2912Visible = visible, 2959Visible = visible, 4358Visible = value 4364control.Visible = value; 4369control.Visible = !value; 4396Visible = value 4402control.Visible = value; 4407control.Visible = !value; 4441control.Visible = value; 4449control.Visible = value; 4457control.Visible = !value; 4496control.Visible = value; 4504control.Visible = value; 4512control.Visible = !value; 4534control.Visible = false; 4539control.Visible = false; 4544control.Visible = true; 4550control.Visible = false; 5119Visible = visible, 5163Visible = visible, 5210Visible = visible, 5267Visible = visible, 6948Visible = visible, 6992Visible = visible, 7039Visible = visible, 7096Visible = visible, 7378Visible = visible, 7422Visible = visible, 7469Visible = visible, 7526Visible = visible,
System\Windows\Forms\ContainerControlTests.cs (2)
811Visible = false 1037Visible = false
System\Windows\Forms\ControlTests.ControlCollection.cs (12)
332Visible = visible 361Visible = visible 390Visible = visible 429Visible = visible 647owner.Visible = false; 797owner.Visible = false; 950owner.Visible = false; 1023owner.Visible = false; 2350owner.Visible = false; 2494owner.Visible = false; 2626owner.Visible = false; 2690owner.Visible = false;
System\Windows\Forms\ControlTests.cs (1)
701Visible = visible
System\Windows\Forms\ControlTests.Handlers.cs (9)
4595Visible = false 5551Visible = visible 5582Visible = visible 5623Visible = visible 5669Visible = visible 5724Visible = visible 5798Visible = false 5802Visible = false 5806Visible = visible
System\Windows\Forms\ControlTests.Internals.cs (1)
253Visible = false
System\Windows\Forms\ControlTests.Methods.cs (9)
567Visible = false 726Visible = false 2899Visible = true 2914Visible = true 2936control.Visible = true; 10040Visible = visible 10080Visible = visible 10222Visible = visible 10240Visible = visible
System\Windows\Forms\ControlTests.Properties.cs (38)
3050Visible = visible 3066Visible = visible 3081Visible = visible 3100Visible = visible 3116Visible = visible 12698Visible = parentVisible 12707item.Visible = visible; 12717Visible = value 12723control.Visible = value; 12728control.Visible = !value; 12741Visible = value 12748control.Visible = value; 12754control.Visible = !value; 12783control.Visible = value; 12791control.Visible = value; 12799control.Visible = !value; 12830control.Visible = value; 12842control.Visible = value; 12854control.Visible = !value; 12871Visible = true 12883control.Visible = false; 12888control.Visible = false; 12893control.Visible = true; 12899control.Visible = false; 12911Visible = true 12942control.Visible = false; 12951control.Visible = false; 12960control.Visible = true; 12972control.Visible = false; 12986Visible = false 12990Visible = false 12994Visible = true 13025control.Visible = false; 13034control.Visible = false; 13043control.Visible = true; 13055control.Visible = false; 13071control.Visible = false; 13087control.Visible = false;
System\Windows\Forms\DataGridViewCellTests.cs (4)
428Visible = gridVisible, 470Visible = gridVisible, 495Visible = gridVisible, 535Visible = gridVisible,
System\Windows\Forms\DataGridViewColumnTests.cs (2)
1538Visible = visible 1611Visible = visible,
System\Windows\Forms\DataGridViewHeaderCellTests.cs (10)
116Visible = gridVisible, 141Visible = gridVisible, 164Visible = gridVisible, 205Visible = gridVisible, 237Visible = gridVisible, 270Visible = gridVisible, 306Visible = gridVisible, 340Visible = gridVisible, 377Visible = visible 405Visible = gridVisible,
System\Windows\Forms\Design\ComponentEditorPageTests.cs (2)
719Visible = visible 735Visible = visible
System\Windows\Forms\ErrorProviderTests.cs (5)
1129yield return new object[] { blinkStyle, new SubControl { Visible = false }, error, error ?? string.Empty }; 1157control.Visible = !originalVisible; 1160control.Visible = originalVisible; 1189control.Visible = !originalVisible; 1192control.Visible = originalVisible;
System\Windows\Forms\FormTests.cs (62)
266Visible = true, 282Visible = false, 297Visible = true, 1865Visible = value 1871control.Visible = value; 1876control.Visible = !value; 1881control.Visible = !value; 1904Visible = parentVisible 1910Visible = value 1916control.Visible = value; 1921control.Visible = !value; 1926control.Visible = !value; 1947control.Visible = value; 1955control.Visible = value; 1963control.Visible = !value; 1971control.Visible = !value; 1986Visible = true 2001control.Visible = true; 2006control.Visible = true; 2011control.Visible = false; 2016control.Visible = false; 2021control.Visible = true; 2026control.Visible = true; 2038Visible = true 2054control.Visible = false; 2059control.Visible = false; 2063control.Visible = true; 2068control.Visible = true; 2073control.Visible = false; 2078control.Visible = false; 2095Visible = value 2101control.Visible = value; 2106control.Visible = !value; 2111control.Visible = !value; 2150control.Visible = value; 2156control.Visible = value; 2162control.Visible = !value; 2168control.Visible = !value; 2175control.Visible = value; 2187Visible = true 2203control.Visible = true; 2208control.Visible = true; 2213control.Visible = false; 2218control.Visible = false; 2223control.Visible = true; 2229control.Visible = false; 2255control.Visible = true; 2260control.Visible = true; 2265control.Visible = false; 2270control.Visible = false; 2275control.Visible = true; 2281control.Visible = false; 2313control.Visible = value; 2319control.Visible = value; 2325control.Visible = !value; 2331control.Visible = !value; 2338control.Visible = value; 2350Visible = initialVisible 2369control.Visible = !initialVisible; 2378control.Visible = !initialVisible; 2387control.Visible = initialVisible; 2397control.Visible = !initialVisible;
System\Windows\Forms\GroupBoxTests.cs (4)
1077Visible = false, 1124Visible = false 2006Visible = false 2029Visible = false
System\Windows\Forms\PictureBoxTests.cs (11)
1638Visible = value 1643control.Visible = value; 1647control.Visible = !value; 1658control.Visible = value; 1662control.Visible = value; 1666control.Visible = value; 1675Visible = true 1687control.Visible = false; 1692control.Visible = false; 1697control.Visible = true; 1703control.Visible = false;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DropDownButton.DropDownButtonAccessibleObjectTests.cs (1)
90dropDownButton.Visible = true;
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObjectTests.cs (1)
57ownerControl.Visible = true;
System\Windows\Forms\PropertyGridInternal\PropertyGridViewTests.Rendering.cs (1)
20Visible = true
System\Windows\Forms\PropertyGridTests.cs (8)
1364Visible = visible 1399Visible = visible 1982Visible = visible 2023Visible = visible 2074Visible = visible 2109Visible = visible 3092Visible = visible 3131Visible = visible
System\Windows\Forms\PropertyManagerTests.cs (1)
163using SubControl control = new() { Visible = true };
System\Windows\Forms\ScrollableControlTests.cs (3)
872Visible = value 877control.Visible = value; 881control.Visible = !value;
System\Windows\Forms\TableLayoutPanelTests.cs (3)
797Visible = false 820Visible = false 843Visible = false
System\Windows\Forms\ToolStripContentPanelTests.cs (13)
1146Visible = visible 1179Visible = visible 1714Visible = value 1720control.Visible = value; 1725control.Visible = !value; 1737control.Visible = value; 1742control.Visible = value; 1747control.Visible = !value; 1757Visible = true 1769control.Visible = false; 1774control.Visible = false; 1779control.Visible = true; 1785control.Visible = false;
System\Windows\Forms\ToolStripControlHostTests.cs (3)
40yield return new object[] { new Control { Visible = false } }; 681c.Visible = false; 687c.Visible = true;
System\Windows\Forms\ToolStripItemTests.cs (2)
9133Visible = ownerVisible 9155Visible = parentVisible
System\Windows\Forms\ToolStripSettingsManagerTests.cs (2)
16toolStrip.Visible = false; 24toolStrip.Visible = true;
System\Windows\Forms\ToolStripTests.cs (13)
4103Visible = value 4109control.Visible = value; 4114control.Visible = !value; 4142control.Visible = value; 4150control.Visible = value; 4158control.Visible = !value; 4171Visible = true 4183control.Visible = false; 4188control.Visible = false; 4193control.Visible = true; 4199control.Visible = false; 4410Visible = false 6827Visible = visible
System\Windows\Forms\UserControlTests.cs (2)
1277Visible = false 1503Visible = false
System\Windows\Forms\WebBrowserTests.cs (19)
1438Visible = false 1461Visible = false, 1499Visible = false 1524Visible = false, 2136Visible = value 2143control.Visible = value; 2149control.Visible = !value; 2160Visible = false 2166control.Visible = true; 2179control.Visible = value; 2183control.Visible = value; 2187control.Visible = value; 2197control.Visible = false; 2203control.Visible = true; 2214Visible = true 2226control.Visible = false; 2231control.Visible = false; 2236control.Visible = true; 2242control.Visible = false;
WebBrowserBaseTests.cs (2)
814Visible = false 840Visible = false
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
274windowsFormsHost.Child.Visible = ((SW.Visibility)value == SW.Visibility.Visible);
600 references to Visible
System.Windows.Forms (243)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
417if (previous.Visible && previous.TabStop)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
239get => GetControl()?.Visible ?? false;
System\Windows\Forms\ActiveX\AxHost.cs (12)
422if (containingControl.Visible && Visible && !_axState[s_fOwnWindow]) 426else if (!containingControl.Visible && Visible && IsHandleCreated && GetOcState() >= OC_INPLACE) 430else if (containingControl.Visible && !GetState(States.Visible) && IsHandleCreated && GetOcState() >= OC_INPLACE) 924if (containingControl is not null && containingControl.Visible && Visible) 1030Debug.Assert(!Visible, "If we were visible we would not be need a fake window."); 1387if (!Visible && ContainingControl is not null && ContainingControl.Visible) 1539bool oldVisible = Visible; 1589if (Visible != oldVisible)
System\Windows\Forms\Control.ControlCollection.cs (1)
109if (value.Visible)
System\Windows\Forms\Control.cs (19)
2227if (!IsHandleCreated || !Visible) 3445return ParentInternal is null || ParentInternal.Visible; 4160bool oldVisible = Visible; 4179bool newVisible = Visible; 4327Enabled && Visible && (_parent is null || _parent.CanProcessMnemonic()); 4339if (!ctl.Enabled || !ctl.Visible) 4565if (!ignoreVisible && (GetState(States.Created) || !Visible)) 7096/// Raises the <see cref="Visible"/> event. 7103bool visible = Visible; 7131if (child.Visible) 8445|| ((validationConstraints & ValidationConstraints.Visible) == ValidationConstraints.Visible && !c.Visible) 8728if (child.Visible) 10258if (value && Visible) 10269if (value != Visible) 10328if (value != Visible) 10920_window.LockReference(GetTopLevel() && Visible); 11960bool oldVisibleProperty = Visible; 11993parentVisible = ParentInternal.Visible; 12684IsHandleCreated && Visible && (ToolStripControlHost is not IKeyboardToolTip toolTip || toolTip.CanShowToolTipsNow());
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
744private void Animate() => Animate(!DesignMode && Visible && Enabled && ParentInternal is not null);
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (4)
89if (owner._horizScrollBar.Visible) 101if (owner._vertScrollBar.Visible) 127if (owner._horizScrollBar.Visible) 132if (owner._vertScrollBar.Visible)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (6)
2123if (_horizScrollBar is not null && _horizScrollBar.Visible) 2128if (_vertScrollBar is not null && _vertScrollBar.Visible) 2203if (_vertScrollBar is not null && _vertScrollBar.Visible) 2211if (_horizScrollBar is not null && _horizScrollBar.Visible) 2402Debug.Assert(firstDisplayedColumnIndex == firstDisplayedColumnIndexDbg1 || !Visible || DisplayedBandsInfo.Dirty); 2780internal bool HorizontalScrollBarVisible => _horizScrollBar.Visible;
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
569bool startUpdateInternal = _owner.Visible;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (14)
4553if (_vertScrollBar.Visible 6416if (DisplayedBandsInfo.Dirty && Visible) 8575|| !_vertScrollBar.Visible 9295if (_horizScrollBar is not null && _horizScrollBar.Visible && _horizScrollBar.Bounds.Contains(x, y)) 9301if (_vertScrollBar is not null && _vertScrollBar.Visible && _vertScrollBar.Bounds.Contains(x, y)) 10028if (_horizScrollBar is not null && _horizScrollBar.Visible) 10033if (_vertScrollBar is not null && _vertScrollBar.Visible) 14970if (_vertScrollBar is not null && _vertScrollBar.Visible) 14979if (_horizScrollBar is not null && _horizScrollBar.Visible) 16453if (!sb.Visible || !sb.Enabled) 19114if (Visible) 19188UpdateColumnsDisplayedState(displayed: Visible); 25410bool startUpdateInternal = Visible; 25506bool startBeginUpdate = Visible;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
55if (DataGridView is null || !DataGridView.Visible)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (1)
247bool suspendRedraw = Visible;
System\Windows\Forms\Controls\Labels\Label.cs (1)
849internal void Animate() => Animate(!DesignMode && Visible && Enabled && ParentInternal is not null);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
972private void Animate() => Animate(animate: !DesignMode && Visible && Enabled && ParentInternal is not null);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (5)
500public virtual bool CommandsVisible => _commandsPane.Visible; 514bool hotcommandsVisible = _commandsPane.Visible; 517if (hotcommandsVisible != _commandsPane.Visible) 593if (value && IsHandleCreated && Visible) 692internal bool GridViewVisible => _gridView is not null && _gridView.Visible;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
114if (Visible && Enabled)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAccessibleObject.cs (1)
46if (!_owningDropDownButton.Visible
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (5)
75if (_detailsTextBox.Visible) 89_detailsTextBox.Visible = !_detailsTextBox.Visible; 95if (_detailsTextBox.Visible) 296if (Visible) 322if (_detailsTextBox.Visible)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridToolTip.cs (1)
51bool visible = Visible;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.PropertyDescriptorGridEntryAccessibleObject.cs (6)
59if (propertyGridView.DropDownButton is { Visible: true } dropDownButton) 69else if (propertyGridView.DialogButton is { Visible: true } dialogButton) 120if (propertyGridView.DropDownButton.Visible || propertyGridView.DialogButton.Visible) 197if (propertyGridView.DropDownButton is { Visible: true } dropDownButton) 207else if (propertyGridView.DialogButton is { Visible: true } dialogButton)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (51)
175if (!EditTextBox.Visible || !EditTextBox.Focused) 336=> DropDownListBox.Visible ? DropDownListBox.AccessibilityObject : null; 346internal bool DropDownVisible => _dropDownHolder is not null && _dropDownHolder.Visible; 412if (_editTextBox is null || !EditTextBox.Visible) 747if (_flags.HasFlag(Flags.DropDownClosing) || _dropDownHolder is null || !_dropDownHolder.Visible) 770if (DialogButton.Visible) 774else if (DropDownButton.Visible) 778else if (EditTextBox.Visible) 825if (IsHandleCreated && Visible && Enabled) 1025if (EditTextBox.Visible) 1034if (!CanPaste || !EditTextBox.Visible) 1061if (CanUndo && EditTextBox.Visible) 1204if (_errorState != ErrorState.None && EditTextBox.Visible) 1210if (DropDownButton.Visible) 1214else if (DialogButton.Visible) 1225else if (EditTextBox.Visible) 1294if (EditTextBox.Visible) 1497if (_dropDownHolder?.Visible == true && m.MsgInternal == PInvokeCore.WM_KEYDOWN && (Keys)(nint)m.WParamInternal != Keys.Tab) 1541if (!EditTextBox.Visible) 1949private bool GetScrollbarHidden() => _scrollBar is null || !ScrollBar.Visible; 2387if (!EditTextBox.Visible) 2398if (EditTextBox.Visible) 2535if (_dropDownHolder is not null && _dropDownHolder.Visible) 2708if (keyCode == Keys.Down && altPressed && DropDownButton.Visible) 2714if (keyCode == Keys.Up && altPressed && DropDownButton.Visible && (_dropDownHolder is not null) && _dropDownHolder.Visible) 2720if (ToolTip.Visible) 2903if (controlPressed && !altPressed && !shiftPressed && EditTextBox.Visible) 2922&& _dropDownHolder.Visible 3203if (ToolTip.Visible) 3485if (Visible && ParentInternal is not null) 3865if (DropDownButton.Visible) 3870else if (DialogButton.Visible) 3884if (!forward && EditTextBox.Visible) 4161bool editVisible = EditTextBox.Visible; 4162bool dropDownButtonVisible = DropDownButton.Visible; 4163bool dialogButtonVisible = DialogButton.Visible; 4479if (_selectedRow != -1 && row < _selectedRow && EditTextBox.Visible) 4781if (DialogButton.Visible) 4785else if (DropDownButton.Visible) 4789else if (EditTextBox.Visible) 4813bool hidden = !ScrollBar.Visible; 5050if (EditTextBox.Visible) 5055else if (_dropDownHolder is not null && _dropDownHolder.Visible) 5212if (DropDownButton.Visible || DialogButton.Visible || EditTextBox.Visible) 5217else if (EditTextBox.Focused && (DropDownButton.Visible || DialogButton.Visible)) 5313if (!InPropertySet && EditTextBox.Visible && (_errorState != ErrorState.None || !CommitEditTextBox())) 5342if (_editTextBox.Visible)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (4)
164while (Visible) 252if (_currentControl is not null && Visible) 668if (Visible && m.WParamInternal.LOWORD == PInvoke.WA_INACTIVE && !OwnsWindow(activatedWindow)) 677if (Visible)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.DropDownHolderAccessibleObject.cs (1)
57private bool ExistsInAccessibleTree => _owningDropDownHolder.IsHandleCreated && _owningDropDownHolder.Visible;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridPositionData.cs (1)
34if (delta != 0 && gridView.ScrollBar.Visible)
System\Windows\Forms\Controls\TabControl\TabPage.cs (1)
467get => base.Visible;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
2542using (new LayoutTransaction(this, this, "ShowKeyboardFocusCues", resumeLayout: Visible)) 3668HookStaticEvents(Visible); 4005if ((control is not null) && control.Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (4)
157return BottomToolStripPanel.Visible; 275return LeftToolStripPanel.Visible; 302return RightToolStripPanel.Visible; 331return TopToolStripPanel.Visible;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
589Visible = ControlInternal.Visible;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
862get => base.Visible;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1993get => (ParentInternal is not null) && (ParentInternal.Visible) && Available;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
302if (Owner.ParentInternal is not null && Owner.ParentInternal.Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
193toolStrip.Visible && 595if (toolStripPanel.IsHandleCreated && toolStripPanel.Visible &&
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
395if (!Control.Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
32if ((!ToolStripPanel.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (ToolStripPanel.ParentInternal is not null))
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowManager.cs (2)
91if ((cell.Visible || (Row.ToolStripPanel.Visible && cell.ControlInDesignMode)) && cell.ToolStripPanelRow == Row) 102if ((cell.Visible || (Row.ToolStripPanel.Visible && cell.ControlInDesignMode)) && cell.ToolStripPanelRow == Row)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
33if ((!ToolStripPanel.Visible || LayoutUtils.IsZeroWidthOrHeight(raftingDisplayRectangle)) && (ToolStripPanel.ParentInternal is not null))
System\Windows\Forms\Controls\ToolStrips\ToolStripRendererSwitcher.cs (2)
33if (owner.Visible) 155if (control.Visible)
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.SettingsStub.cs (1)
41Visible = toolStrip.Visible;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
205HookStaticEvents(Visible);
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarChildAccessibleObject.cs (1)
50internal virtual bool IsDisplayed => this.TryGetOwnerAs(out TrackBar? trackbar) && trackbar.Visible;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (3)
466if ((Visible && parent is not null && parent.Visible) || IsHandleCreated) 476if (Visible && !Disposing && !IsDisposed)
System\Windows\Forms\Design\ComponentEditorPage.cs (1)
191if (!Visible)
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.cs (1)
271_control.Visible && _control.ParentInternal is not null &&
System\Windows\Forms\Form.cs (19)
323if (mdiChild is not null && mdiChild.Visible && mdiChild.Enabled) 802if (Visible && (WindowState is FormWindowState.Maximized or FormWindowState.Normal)) 2055if (value == Visible && _dialogResult == DialogResult.OK) 2062if (value == Visible && (!value || CalledMakeVisible)) 2135if (ParentInternal is not null && ParentInternal.Visible) 2489if (IsHandleCreated && Visible) 2759if (Visible && IsHandleCreated) 3122if (_dialogResult == DialogResult.None && Visible) 3175return _dialogResult != DialogResult.None || !Visible; 3400if (mdiChild != this && mdiChild.Visible) 3759if (!GetStyle(ControlStyles.Selectable) || !Enabled || !Visible) 4139_formStateEx[s_formStateExUseMdiChildProc] = (IsMdiChild && Visible) ? 1 : 0; 4349&& Visible 5337/// Displays the form by setting its <see cref="Control.Visible"/> property to <see langword="true"/>. 5357/// This method makes the form visible by setting the <see cref="Control.Visible"/> property to <see langword="true"/>. 5377if (Visible) 5431/// Displays the form asynchronously, by setting its <see cref="Control.Visible"/> property to <see langword="true"/>. 5441/// This method makes the form visible by setting the <see cref="Control.Visible"/> property to <see langword="true"/>. 5571if (Visible)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
632if (_activeControl is not null && _activeControl.Visible) 645while (containerControl is not null && !containerControl.Visible) 658if (containerControl is not null && containerControl.Visible) 2008if (!ActiveControl.Visible)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (3)
1940if (ctl is null || (ctl is SplitterPanel && ctl.Visible)) 1964if (ctl is null || (ctl is SplitterPanel && !ctl.Visible)) 1980if (ctl is null || (ctl.ParentInternal is not null && !ctl.ParentInternal.Visible))
System\Windows\Forms\MDI\MDIClient.cs (1)
353if (childForm is not null && childForm.Visible)
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
47if (all[i].Visible)
System\Windows\Forms\MDI\MdiWindowListStrip.cs (1)
103if (forms[i].Visible && (forms[i].CloseReason == CloseReason.None))
System\Windows\Forms\Panels\SplitterPanel.cs (1)
262get => base.Visible;
System\Windows\Forms\Printing\PrintPreviewControl.cs (13)
443if (_hScrollBar.Visible) 448if (_vScrollBar.Visible) 707if (!_hScrollBar.Visible || !_vScrollBar.Visible) 796bool scrollBarsVisibilityChanged = (_vScrollBar.Visible ^ verticalScrollNeeded) || (_hScrollBar.Visible ^ horizontalScrollNeeded); 908bool scrollVisible = _vScrollBar.Visible || _hScrollBar.Visible; 909bool vertical = _vScrollBar.Visible; 997if (_vScrollBar.Visible) 1015if (_vScrollBar.Visible) 1035if (_hScrollBar.Visible) 1053if (_hScrollBar.Visible)
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibleObject.cs (23)
35return owner._vScrollBar.Visible 36? owner._hScrollBar.Visible ? 2 : 1 37: owner._hScrollBar.Visible ? 1 : 0; 490 => owner._vScrollBar.Visible ? owner._vScrollBar.AccessibilityObject 50: owner._hScrollBar.Visible ? owner._hScrollBar.AccessibilityObject : null, 521 => owner._vScrollBar.Visible && owner._hScrollBar.Visible ? owner._hScrollBar.AccessibilityObject : null, 64&& (owner._vScrollBar.Visible || owner._hScrollBar.Visible), 80=> owner._vScrollBar.Visible 82: owner._hScrollBar.Visible 86=> owner._hScrollBar.Visible 88: owner._vScrollBar.Visible 103if (owner._hScrollBar.Visible && horizontalAmount != ScrollAmount.ScrollAmount_NoAmount) 126if (owner._vScrollBar.Visible && verticalAmount != ScrollAmount.ScrollAmount_NoAmount) 160if (owner._hScrollBar.Visible && horizontalPercent >= 0 && horizontalPercent <= 100) 166if (owner._vScrollBar.Visible && verticalPercent >= 0 && verticalPercent <= 100) 179if (this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner._hScrollBar.Visible) 193if (this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner._vScrollBar.Visible) 204&& owner._hScrollBar.Visible ? owner.HorizontalViewSize : 100; 207&& owner._vScrollBar.Visible ? owner.VerticalViewSize : 100; 210this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner._hScrollBar.Visible; 213this.TryGetOwnerAs(out PrintPreviewControl? owner) && owner._vScrollBar.Visible;
System\Windows\Forms\Printing\PrintPreviewControl.ScrollBarAccessibleObject.cs (4)
34=> printPreviewControl._vScrollBar.Visible && 35printPreviewControl._hScrollBar.Visible && 40=> printPreviewControl._hScrollBar.Visible && 41printPreviewControl._vScrollBar.Visible &&
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
525get => base.Visible;
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
700if (Visible)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
61internal virtual bool IsDisplayed => OwningScrollBar.Visible;
System\Windows\Forms\ToolTip\ToolTip.cs (1)
1097while (current is not null && current.Visible)
System.Windows.Forms.Design (45)
System\ComponentModel\Design\ByteViewer.cs (1)
651if (_linesCount > _rowCount && !_scrollBar.Visible)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
736if (!Visible)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (4)
79if (_hostedControl is not null && Visible) 88while (Visible) 161if (parent is not null && parent.Visible) 171&& Visible
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
150else if (!Visible) 219if (Visible)
System\Windows\Forms\Design\Behavior\ControlBodyGlyph.cs (1)
56bool isVisible = _component is not Control control || control.Visible;
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
479!control.Visible)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (1)
227if (_relatedPanel!.Visible && _image is not null && _glyphBounds != Rectangle.Empty && baseParentBounds.Contains(_glyphBounds))
System\Windows\Forms\Design\ComponentTray.cs (8)
196if (shouldDisplay != control.Visible || !shouldDisplay) 373if (!ctl.Visible) 1455if (c is not null && c.Visible) 1576if (c.Visible) 1755Debug.Assert(c.Visible, $"TrayControl for {c.Component} should not be positioned"); 1811Debug.Assert(Visible == c.Visible, $"TrayControl for {((TrayControl)c).Component} should not be positioned"); 1820Debug.Assert(c.Visible, $"TrayControl for {c.Component} should not be positioned");
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
615if (Visible && IsHandleCreated)
System\Windows\Forms\Design\DesignBindingPicker.cs (3)
1624else if (_addNewPanel.Visible) 1654if (Visible) 1781if (_inSelectNode || !Visible)
System\Windows\Forms\Design\FormatControl.cs (3)
185Debug.Assert(decimalPlacesUpDown.Visible); 197Debug.Assert(dateTimeFormatsListBox.Visible); 209Debug.Assert(_customStringTextBox.Visible);
System\Windows\Forms\Design\PanelDesigner.cs (1)
31if (panel is null || !panel.Visible)
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
878if (child.Visible && ((containRect && rect.Contains(bounds)) || (!containRect && bounds.IntersectsWith(rect))) &&
System\Windows\Forms\Design\SelectionUIService.cs (3)
116_savedVisible = Visible; 884get => Visible; 970_savedVisible = Visible;
System\Windows\Forms\Design\TabOrder.cs (1)
444if (!c.Visible)
System\Windows\Forms\Design\ToolStripDesigner.cs (7)
450if (ToolStrip.Visible != value && !SelectionService.GetComponentSelected(ToolStrip)) 1268if (TryGetService(out SelectionManager selectionManager) && ToolStrip is not null && CanAddItems && ToolStrip.Visible) 1394if (_miniToolStrip is not null && _miniToolStrip.Visible && AddItemRect.Contains(point)) 2179if (sender is ToolStrip tool && !tool.Visible) 2357if (!_currentVisible || !Control.Visible) 2362if (ToolStrip.Parent is ToolStripPanel && !ToolStrip.Parent.Visible) 2498if (_miniToolStrip is not null && _miniToolStrip.Visible)
System\Windows\Forms\Design\ToolStripInSituService.cs (2)
218hWnd = (_toolDesigner.Editor.EditBox.Visible) ? _toolDesigner.Editor.EditBox.Handle : hWnd; 222hWnd = (_toolItemDesigner.Editor.EditBox.Visible) ? _toolItemDesigner.Editor.EditBox.Handle : hWnd;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
587if (parent is not null && parent.Visible)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
2160if (IsOnContextMenu && !MenuItem.Owner.Visible)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (2)
294return Control.Visible ? _containerSelectorGlyph : null; 556nameof(ToolStripPanel.Visible),
System.Windows.Forms.Design.Tests (11)
System\ComponentModel\Design\ByteViewerTests.cs (9)
123Assert.True(control.Visible); 806Assert.True(textBox.Visible); 807Assert.False(scrollBar.Visible); 813Assert.True(textBox.Visible); 814Assert.False(scrollBar.Visible); 836Assert.True(textBox.Visible); 837Assert.False(scrollBar.Visible); 843Assert.True(textBox.Visible); 844Assert.False(scrollBar.Visible);
System\Windows\Forms\Design\InheritedPropertyDescriptorTests.cs (2)
61InheritedPropertyDescriptor inheritedPropertyDescriptor = control.GetInheritedPropertyDescriptor(nameof(Control.Visible)); 65control.Visible = !control.Visible;
System.Windows.Forms.Tests (294)
System\Windows\Forms\AxHostTests.cs (2)
113Assert.True(control.Visible); 207Assert.True(control.Visible);
System\Windows\Forms\ButtonBaseTests.cs (16)
119Assert.True(control.Visible); 4360Assert.Equal(value, control.Visible); 4365Assert.Equal(value, control.Visible); 4370Assert.Equal(!value, control.Visible); 4398Assert.Equal(value, control.Visible); 4403Assert.Equal(value, control.Visible); 4408Assert.Equal(!value, control.Visible); 4442Assert.Equal(value, control.Visible); 4450Assert.Equal(value, control.Visible); 4458Assert.Equal(!value, control.Visible); 4497Assert.Equal(value, control.Visible); 4505Assert.Equal(value, control.Visible); 4513Assert.Equal(!value, control.Visible); 4535Assert.False(control.Visible); 4540Assert.False(control.Visible); 4545Assert.True(control.Visible);
System\Windows\Forms\ButtonTests.cs (1)
117Assert.True(control.Visible);
System\Windows\Forms\CheckBoxTests.cs (1)
120Assert.True(control.Visible);
System\Windows\Forms\ComboBoxTests.cs (1)
129Assert.True(control.Visible);
System\Windows\Forms\ContainerControlTests.cs (1)
117Assert.True(control.Visible);
System\Windows\Forms\ControlTests.ControlCollection.cs (24)
346Assert.Equal(visible, control.Visible); 375Assert.Equal(visible, control.Visible); 411Assert.Equal(visible, control.Visible); 451Assert.Equal(visible, control.Visible); 569Assert.True(control.Visible); 613Assert.True(control.Visible); 648Assert.True(control.Visible); 758Assert.False(control.Visible); 798Assert.True(control.Visible); 917Assert.False(control.Visible); 951Assert.True(control.Visible); 994Assert.False(control.Visible); 1024Assert.True(control.Visible); 1074Assert.False(control.Visible); 2266Assert.True(control.Visible); 2313Assert.True(control.Visible); 2351Assert.False(control.Visible); 2457Assert.True(control.Visible); 2495Assert.False(control.Visible); 2590Assert.True(control.Visible); 2627Assert.False(control.Visible); 2663Assert.True(control.Visible); 2691Assert.False(control.Visible); 2741Assert.True(control.Visible);
System\Windows\Forms\ControlTests.cs (5)
95Assert.True(control.Visible); 184Assert.True(control.Visible); 280Assert.True(control.Visible); 376Assert.True(control.Visible); 472Assert.True(control.Visible);
System\Windows\Forms\ControlTests.Methods.cs (9)
2902Assert.False(control.Visible); 2906Assert.False(control.Visible); 2926Assert.False(control.Visible); 2931Assert.False(control.Visible); 2938Assert.False(control.Visible); 10225Assert.True(control.Visible); 10230Assert.True(control.Visible); 10251Assert.True(control.Visible); 10259Assert.True(control.Visible);
System\Windows\Forms\ControlTests.Properties.cs (48)
12704Assert.Equal(parentVisible, item.Visible); 12708Assert.Equal(expected, item.Visible); 12719Assert.Equal(value, control.Visible); 12724Assert.Equal(value, control.Visible); 12729Assert.Equal(!value, control.Visible); 12743Assert.Equal(value, control.Visible); 12749Assert.Equal(value, control.Visible); 12755Assert.Equal(!value, control.Visible); 12784Assert.Equal(value, control.Visible); 12792Assert.Equal(value, control.Visible); 12800Assert.Equal(!value, control.Visible); 12831Assert.Equal(value, control.Visible); 12843Assert.Equal(value, control.Visible); 12855Assert.Equal(!value, control.Visible); 12884Assert.False(control.Visible); 12889Assert.False(control.Visible); 12894Assert.True(control.Visible); 12900Assert.False(control.Visible); 12943Assert.False(control.Visible); 12944Assert.False(child1.Visible); 12945Assert.False(child2.Visible); 12952Assert.False(control.Visible); 12953Assert.False(child1.Visible); 12954Assert.False(child2.Visible); 12961Assert.True(control.Visible); 12962Assert.True(child1.Visible); 12963Assert.True(child2.Visible); 12973Assert.False(control.Visible); 12974Assert.False(child1.Visible); 12975Assert.False(child2.Visible); 13026Assert.False(control.Visible); 13027Assert.False(child1.Visible); 13028Assert.False(child2.Visible); 13035Assert.False(control.Visible); 13036Assert.False(child1.Visible); 13037Assert.False(child2.Visible); 13044Assert.True(control.Visible); 13045Assert.False(child1.Visible); 13046Assert.False(child2.Visible); 13056Assert.False(control.Visible); 13057Assert.False(child1.Visible); 13058Assert.False(child2.Visible); 13067PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Visible)]; 13072Assert.False(control.Visible); 13076Assert.True(control.Visible); 13083PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.Visible)]; 13088Assert.False(control.Visible); 13092Assert.True(control.Visible);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
126Assert.True(control.Visible);
System\Windows\Forms\DateTimePickerTests.cs (1)
120Assert.True(control.Visible);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
158Assert.False(control.Visible);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (10)
120Assert.False(control.Visible); 478Assert.True(control.Visible); 486Assert.True(control.Visible); 525Assert.True(control.Visible); 532Assert.False(control.Visible); 540Assert.False(control.Visible); 556Assert.False(control.Visible); 564Assert.False(control.Visible); 721Assert.Equal(visible, control.Visible); 737Assert.Equal(visible, control.Visible);
System\Windows\Forms\DomainUpDownTests.cs (1)
146_sub.Visible.Should().BeTrue();
System\Windows\Forms\ErrorProviderTests.cs (5)
1139bool originalVisible = control.Visible; 1158Assert.Equal(!originalVisible, control.Visible); 1161Assert.Equal(originalVisible, control.Visible); 1190Assert.Equal(!originalVisible, control.Visible); 1193Assert.Equal(originalVisible, control.Visible);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
113Assert.True(control.Visible);
System\Windows\Forms\FormTests.cs (55)
160Assert.False(control.Visible); 1867Assert.Equal(value, control.Visible); 1872Assert.Equal(value, control.Visible); 1877Assert.Equal(!value, control.Visible); 1882Assert.Equal(!value, control.Visible); 1912Assert.Equal(expected, control.Visible); 1917Assert.Equal(expected, control.Visible); 1922Assert.Equal(!expected && parentVisible, control.Visible); 1927Assert.Equal(!expected && parentVisible, control.Visible); 1948Assert.Equal(value, control.Visible); 1956Assert.Equal(value, control.Visible); 1964Assert.Equal(!value, control.Visible); 1972Assert.Equal(!value, control.Visible); 2002Assert.Equal(dialogResult is DialogResult.OK or DialogResult.None, control.Visible); 2007Assert.True(control.Visible); 2012Assert.False(control.Visible); 2017Assert.False(control.Visible); 2022Assert.Equal(dialogResult != DialogResult.OK, control.Visible); 2027Assert.True(control.Visible); 2055Assert.False(control.Visible); 2060Assert.False(control.Visible); 2064Assert.Equal(dialogResult == DialogResult.None, control.Visible); 2069Assert.True(control.Visible); 2074Assert.False(control.Visible); 2079Assert.False(control.Visible); 2097Assert.False(control.Visible); 2102Assert.False(control.Visible); 2107Assert.False(control.Visible); 2112Assert.False(control.Visible); 2151Assert.Equal(value, control.Visible); 2157Assert.Equal(value, control.Visible); 2163Assert.Equal(!value, control.Visible); 2169Assert.Equal(!value, control.Visible); 2176Assert.Equal(value, control.Visible); 2204Assert.True(control.Visible); 2209Assert.True(control.Visible); 2214Assert.False(control.Visible); 2219Assert.False(control.Visible); 2224Assert.True(control.Visible); 2230Assert.False(control.Visible); 2256Assert.False(control.Visible); 2261Assert.False(control.Visible); 2266Assert.False(control.Visible); 2271Assert.False(control.Visible); 2276Assert.False(control.Visible); 2282Assert.False(control.Visible); 2314Assert.Equal(value, control.Visible); 2320Assert.Equal(value, control.Visible); 2326Assert.Equal(!value, control.Visible); 2332Assert.Equal(!value, control.Visible); 2339Assert.Equal(value, control.Visible); 2370Assert.Equal(!initialVisible, control.Visible); 2379Assert.Equal(!initialVisible, control.Visible); 2388Assert.Equal(initialVisible, control.Visible); 2398Assert.Equal(!initialVisible, control.Visible);
System\Windows\Forms\GroupBoxTests.cs (1)
100Assert.True(control.Visible);
System\Windows\Forms\HScrollBarTests.cs (1)
114Assert.True(control.Visible);
System\Windows\Forms\LabelTests.cs (1)
111Assert.True(control.Visible);
System\Windows\Forms\ListBoxTests.cs (1)
132Assert.True(control.Visible);
System\Windows\Forms\ListControlTests.cs (1)
108Assert.True(control.Visible);
System\Windows\Forms\ListViewTests.cs (1)
150Assert.True(control.Visible);
System\Windows\Forms\MdiClientTests.cs (1)
84Assert.True(control.Visible);
System\Windows\Forms\MenuStripTests.cs (1)
145Assert.True(control.Visible);
System\Windows\Forms\MonthCalendarTests.cs (1)
139Assert.True(control.Visible);
System\Windows\Forms\PanelTests.cs (1)
110Assert.True(control.Visible);
System\Windows\Forms\PictureBoxTests.cs (11)
107Assert.True(control.Visible); 1640Assert.Equal(value, control.Visible); 1644Assert.Equal(value, control.Visible); 1648Assert.Equal(!value, control.Visible); 1659Assert.Equal(value, control.Visible); 1663Assert.Equal(value, control.Visible); 1667Assert.Equal(value, control.Visible); 1688Assert.False(control.Visible); 1693Assert.False(control.Visible); 1698Assert.True(control.Visible); 1704Assert.False(control.Visible);
System\Windows\Forms\ProgressBarTests.cs (1)
100Assert.True(control.Visible);
System\Windows\Forms\PropertyGridTests.cs (7)
159Assert.True(control.Visible); 3100Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3108Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3116Assert.Equal(visible && !value, control.Controls.OfType<ToolStrip>().Single().Visible); 3146Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3157Assert.Equal(visible && value, control.Controls.OfType<ToolStrip>().Single().Visible); 3168Assert.Equal(visible && !value, control.Controls.OfType<ToolStrip>().Single().Visible);
System\Windows\Forms\RadioButtonTests.cs (1)
117Assert.True(control.Visible);
System\Windows\Forms\RichTextBoxTests.cs (1)
132Assert.True(control.Visible);
System\Windows\Forms\ScrollableControlTests.cs (4)
110Assert.True(control.Visible); 874Assert.Equal(value, control.Visible); 878Assert.Equal(value, control.Visible); 882Assert.Equal(!value, control.Visible);
System\Windows\Forms\ScrollBarTests.cs (1)
102Assert.True(control.Visible);
System\Windows\Forms\SplitterTests.cs (1)
100Assert.True(control.Visible);
System\Windows\Forms\StatusStripTests.cs (1)
148Assert.True(control.Visible);
System\Windows\Forms\TabControlTests.cs (1)
111Assert.True(control.Visible);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
121Assert.True(control.Visible);
System\Windows\Forms\ToolStripContentPanelTests.cs (11)
115Assert.True(control.Visible); 1716Assert.Equal(value, control.Visible); 1721Assert.Equal(value, control.Visible); 1726Assert.Equal(!value, control.Visible); 1738Assert.Equal(value, control.Visible); 1743Assert.Equal(value, control.Visible); 1748Assert.Equal(!value, control.Visible); 1770Assert.False(control.Visible); 1775Assert.False(control.Visible); 1780Assert.True(control.Visible); 1786Assert.False(control.Visible);
System\Windows\Forms\ToolStripControlHostTests.cs (9)
122Assert.True(c.Visible); 682Assert.False(c.Visible); 688Assert.True(c.Visible); 2415Assert.Equal(value, c.Visible); 2422Assert.Equal(value, c.Visible); 2429Assert.Equal(!value, c.Visible); 4463Assert.Equal(value, c.Visible); 4471Assert.Equal(value, c.Visible); 4479Assert.Equal(!value, c.Visible);
System\Windows\Forms\ToolStripPanelTests.cs (1)
114Assert.True(control.Visible);
System\Windows\Forms\ToolStripSettingsManagerTests.cs (1)
29Assert.False(toolStrip.Visible);
System\Windows\Forms\ToolStripTests.cs (28)
161Assert.True(control.Visible); 316Assert.True(control.Visible); 4105Assert.Equal(value, control.Visible); 4110Assert.Equal(value, control.Visible); 4115Assert.Equal(!value, control.Visible); 4143Assert.Equal(value, control.Visible); 4151Assert.Equal(value, control.Visible); 4159Assert.Equal(!value, control.Visible); 4184Assert.False(control.Visible); 4189Assert.False(control.Visible); 4194Assert.True(control.Visible); 4200Assert.False(control.Visible); 4367Assert.True(control.Visible); 4383Assert.True(control.Visible); 4395Assert.True(control.Visible); 4421Assert.False(control.Visible); 4437Assert.False(control.Visible); 4449Assert.False(control.Visible); 4481Assert.True(control.Visible); 4505Assert.True(control.Visible); 4525Assert.True(control.Visible); 4552Assert.True(control.Visible); 4568Assert.True(control.Visible); 4580Assert.True(control.Visible); 4649Assert.True(control.Visible); 4673Assert.True(control.Visible); 4693Assert.True(control.Visible); 4696Assert.True(control.Visible);
System\Windows\Forms\TreeViewTests.cs (1)
126Assert.True(control.Visible);
System\Windows\Forms\UpDownBaseTests.cs (1)
129Assert.True(control.Visible);
System\Windows\Forms\UserControlTests.cs (1)
117Assert.True(control.Visible);
System\Windows\Forms\VScrollBarTests.cs (1)
113Assert.True(control.Visible);
System\Windows\Forms\WebBrowserTests.cs (15)
95Assert.True(control.Visible); 2138Assert.Equal(value, control.Visible); 2144Assert.Equal(value, control.Visible); 2150Assert.Equal(!value, control.Visible); 2162Assert.False(control.Visible); 2167Assert.True(control.Visible); 2180Assert.Equal(value, control.Visible); 2184Assert.Equal(value, control.Visible); 2188Assert.Equal(value, control.Visible); 2198Assert.False(control.Visible); 2204Assert.True(control.Visible); 2227Assert.False(control.Visible); 2232Assert.False(control.Visible); 2237Assert.True(control.Visible); 2243Assert.False(control.Visible);
TextBoxTests.cs (1)
119Assert.True(control.Visible);
TrackBarTests.cs (1)
107Assert.True(control.Visible);
System.Windows.Forms.UI.IntegrationTests (5)
ButtonTests.cs (5)
40Assert.True(form.Visible); 50Assert.Equal(dialogResult == DialogResult.None, form.Visible); 71Assert.False(form.Visible); 89Assert.True(form.Visible); 108Assert.False(form.Visible);
WindowsFormsIntegration (2)
System\Windows\Integration\ElementHost.cs (1)
963OnPropertyChanged("Visible", this.Visible);
System\Windows\Integration\ElementHostPropertyMap.cs (1)
72if (parent != null && parent.Visible)