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