885 writes to Parent
DesignSurface (14)
MainForm.cs (14)
154
rb1.
Parent
= pnl;
155
rb2.
Parent
= pnl;
156
checkbox1.
Parent
= pnl;
157
checkbox2.
Parent
= pnl;
158
checkbox3.
Parent
= pnl;
170
l1.
Parent
= sct.Panel1;
171
l2.
Parent
= sct.Panel2;
225
b3.
Parent
= gb;
393
view.
Parent
= tabPage1;
396
view.
Parent
= tabPage2;
399
view.
Parent
= tabPage3;
402
view.
Parent
= tabPage4;
405
view.
Parent
= tabPage5;
408
view.
Parent
= tabPage6;
DesignSurfaceExt (1)
DesignSurfaceExt.cs (1)
187
((Control)newComp).
Parent
= host.RootComponent as Control;
Microsoft.VisualStudio.LanguageServices (1)
LanguageService\AbstractLanguageService`2.VsCodeWindowManager.cs (1)
295
_documentOutlineViewHost.
Parent
= null;
System.Windows.Forms (2)
System\Windows\Forms\Control.cs (1)
403
Parent
= parent;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
212
set => base.
Parent
= value;
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
249
currentControl.
Parent
= dragTarget;
System\Windows\Forms\Design\DesignerFrame.cs (2)
74
designerHolder.
Parent
= null;
441
control.
Parent
= null;
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
284
_miniToolStrip.
Parent
= ToolStrip;
2080
ddi.DropDown.
Parent
= _toolStripAdornerWindowService.ToolStripAdornerWindowControl;
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1113
ddi.DropDown.
Parent
= _toolStripAdornerWindowService.ToolStripAdornerWindowControl;
System.Windows.Forms.Design.Tests (5)
SplitContainerDesignerTests.cs (1)
44
control.
Parent
= splitContainer.Panel1;
System\Windows\Forms\Design\InheritanceUITests.cs (3)
25
_control = new Control {
Parent
= _form };
26
_childControl = new Control {
Parent
= _control };
27
_sitedChildControl = new Control {
Parent
= _control, Site = new Mock<ISite>().Object };
System\Windows\Forms\Design\ToolStripActionListTests.cs (1)
141
_toolStrip.
Parent
= new Form();
System.Windows.Forms.Tests (850)
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (22)
345
Parent
= parent,
360
Parent
= parent,
420
Parent
= parent,
425
Parent
= parent,
430
Parent
= parent,
445
Parent
= parent,
450
Parent
= parent,
455
Parent
= parent,
470
Parent
= parent,
475
Parent
= parent
479
Parent
= parent,
545
Parent
= parent,
561
Parent
= parent,
660
Parent
= parent,
665
Parent
= parent,
670
Parent
= parent,
686
Parent
= parent,
691
Parent
= parent,
696
Parent
= parent,
712
Parent
= parent,
717
Parent
= parent
721
Parent
= parent,
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (1)
551
dataGridView.
Parent
= form;
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (1)
25
Parent
= form,
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
347
using ListBox listBox = new() {
Parent
= form, Items = { "Item 1", "Item 2" } };
System\Windows\Forms\Application.ParkingWindowTests.cs (1)
49
comboBox.
Parent
= null;
System\Windows\Forms\AxHostTests.cs (13)
351
Parent
= grandparent
355
Parent
= parent
363
parent.
Parent
= null;
373
Parent
= parent
381
control.
Parent
= null;
391
Parent
= parent
400
parent.
Parent
= grandparent;
407
parent.
Parent
= null;
1307
Parent
= parent
1324
control.
Parent
= parent;
1353
Parent
= parent
1858
Parent
= parent,
2153
Parent
= parent,
System\Windows\Forms\ButtonBaseTests.cs (36)
1140
Parent
= parent,
1311
Parent
= parent,
1554
Parent
= parent
1721
Parent
= parent
1888
Parent
= parent,
1992
Parent
= parent,
2816
Parent
= value
2822
control.
Parent
= value;
2850
Parent
= value
2856
control.
Parent
= value;
2871
Parent
= oldParent
2874
control.
Parent
= value;
2880
control.
Parent
= value;
2892
Parent
= parent
2899
control.
Parent
= parent;
2923
control.
Parent
= value;
2931
control.
Parent
= value;
2971
control.
Parent
= value;
2979
control.
Parent
= value;
3002
control.
Parent
= parent;
3007
control.
Parent
= parent;
3012
control.
Parent
= null;
3018
control.
Parent
= parent;
3027
Assert.Throws<ArgumentException>(() => control.
Parent
= control);
3079
Parent
= parent
3174
Parent
= parent
3320
Parent
= parent
3436
Parent
= parent
3552
Parent
= parent,
3661
Parent
= parent,
3763
Parent
= parent
3860
Parent
= parent
3972
Parent
= parent,
4088
Parent
= parent,
7192
Parent
= parent
7294
Parent
= parent
System\Windows\Forms\ButtonTests.cs (16)
300
Parent
= parent
348
Parent
= parent
448
Parent
= parent
521
Parent
= parent
795
Parent
= parent
890
Parent
= parent
1937
Parent
= form
1941
Parent
= parent,
2019
Parent
= form
2023
Parent
= parent,
2926
Parent
= parent
3028
Parent
= parent
3121
Parent
= form
3125
Parent
= parent,
3199
Parent
= form
3203
Parent
= parent,
System\Windows\Forms\ControlTests.ControlCollection.cs (3)
1180
Parent
= parent
1192
Parent
= grandparent
1196
Parent
= parent
System\Windows\Forms\ControlTests.cs (2)
574
Parent
= parent
600
Parent
= parent
System\Windows\Forms\ControlTests.Handlers.cs (7)
2624
Parent
= parent
2685
Parent
= parent
3138
Parent
= parent
3983
Parent
= parent
4114
Parent
= parent
5581
Parent
= parent,
5668
Parent
= parent,
System\Windows\Forms\ControlTests.Methods.cs (78)
507
Parent
= parent
551
Parent
= parent
694
Parent
= parent
710
Parent
= parent
782
Parent
= parent
786
Parent
= control
790
Parent
= control
794
Parent
= child1
799
Parent
= otherParent
847
Parent
= parent
1024
Parent
= parent
1361
Parent
= parent
1414
Parent
= parent
1977
control.
Parent
= form;
2021
Parent
= parent
2076
Parent
= parent
2146
Parent
= grandparent
2150
Parent
= parent
2163
Parent
= greatGrandparent
2167
Parent
= grandparent
2171
Parent
= parent
2184
Parent
= greatGrandparent
2188
Parent
= grandparent.Panel1
2201
Parent
= greatGrandparent
2206
Parent
= grandparent
2210
Parent
= parent
2223
Parent
= greatGrandparent
2228
Parent
= grandparent
2232
Parent
= parent
4320
Parent
= otherControlParent
4829
Parent
= parent
4864
Parent
= parent
5084
Parent
= parent
5129
Parent
= parent
5375
Parent
= parent
5487
Parent
= parent,
5552
Parent
= parent
5582
control.
Parent
= parent;
5605
Parent
= parent
5630
Parent
= parent
5653
Parent
= parent
5678
Parent
= parent
5753
Parent
= parent
5810
Parent
= parent
6044
Parent
= parent
6101
Parent
= parent
6160
Parent
= parent
6225
Parent
= parent,
6252
Parent
= parent
6277
Parent
= parent
7318
Parent
= parent
7691
Parent
= parent
7948
Parent
= parent
8548
Parent
= parent
8805
Parent
= parent
9345
Parent
= parent
9643
Parent
= parent
10129
Parent
= parent
10602
Parent
= parent
10858
Parent
= parent
11248
Parent
= parent
11486
Parent
= parent
11734
Parent
= parent
11984
Parent
= parent
12193
Parent
= parent
12212
Parent
= parent
12244
Parent
= parent
12277
Parent
= parent
14096
Parent
= parent
14145
Parent
= parent
14207
Parent
= grandparent
14211
Parent
= parent
14252
Parent
= grandparent
14256
Parent
= parent
14295
Parent
= grandparent
14299
Parent
= parent
14340
Parent
= grandparent
14344
Parent
= parent
System\Windows\Forms\ControlTests.Properties.cs (70)
413
Parent
= parent
458
Parent
= grandparent
462
Parent
= parent
560
Parent
= parent
678
Parent
= grandparent
683
Parent
= parent
824
Parent
= parent,
949
Parent
= parent
1003
Parent
= parent
1110
Parent
= parent
2148
Parent
= parent
2163
Parent
= parent
2696
Parent
= parent
2907
Parent
= parent
3085
Parent
= parent
3120
Parent
= parent
3736
Parent
= parent
3756
Parent
= parent
3788
Parent
= parent
4186
Parent
= parent
4277
Parent
= parent
4805
Parent
= parent
4825
Parent
= parent
5973
Parent
= parent
6208
Parent
= parent
6743
Parent
= parent
6937
Parent
= parent
7222
Parent
= parent
7420
Parent
= parent
7730
Parent
= parent
7799
Parent
= parent
8103
Parent
= parent
8159
Parent
= parent
8312
Parent
= parent
8380
Parent
= parent
8747
Parent
= parent
8809
Parent
= parent
9055
Parent
= parent
9144
Parent
= parent
9442
Parent
= parent
9540
Parent
= parent
9687
Parent
= value
9693
control.
Parent
= value;
9705
Parent
= oldParent
9708
control.
Parent
= value;
9714
control.
Parent
= value;
9726
Parent
= parent
9733
control.
Parent
= parent;
9752
control.
Parent
= value;
9760
control.
Parent
= value;
9783
control.
Parent
= parent;
9788
control.
Parent
= parent;
9793
control.
Parent
= null;
9799
control.
Parent
= parent;
9808
Assert.Throws<ArgumentException>(() => control.
Parent
= control);
9819
Assert.Throws<ArgumentException>(() => control.
Parent
= child);
9830
Assert.Throws<ArgumentException>(() => control.
Parent
= parent);
11372
Parent
= parent
11617
Parent
= parent
12177
Parent
= parent
12369
Parent
= parent
12570
Parent
= grandparent
12574
Parent
= parent
12588
Parent
= grandparent
12592
Parent
= parent
12702
Parent
= parent
12740
Parent
= parent,
12814
Parent
= parent
13392
Parent
= parent
13627
Parent
= parent
System\Windows\Forms\DataGridViewTests.cs (18)
119
Parent
= parent
261
Parent
= parent
827
Parent
= value
833
control.
Parent
= value;
845
Parent
= oldParent
848
control.
Parent
= value;
854
control.
Parent
= value;
866
Parent
= parent
873
control.
Parent
= parent;
892
control.
Parent
= value;
899
control.
Parent
= value;
921
control.
Parent
= parent;
926
control.
Parent
= parent;
931
control.
Parent
= null;
937
control.
Parent
= parent;
946
Assert.Throws<ArgumentException>(() => control.
Parent
= control);
1036
Parent
= parent
1185
Parent
= parent
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (6)
1590
Parent
= parent
1647
Parent
= parent
1881
Parent
= parent
1938
Parent
= parent
1997
Parent
= parent
2062
Parent
= parent,
System\Windows\Forms\ErrorProviderTests.cs (7)
1130
yield return new object[] { blinkStyle, new SubControl {
Parent
= new() }, error, error ?? string.Empty };
1163
control.
Parent
= newParent;
1166
control.
Parent
= null;
1169
control.
Parent
= originalParent;
1195
control.
Parent
= newParent;
1198
control.
Parent
= null;
1201
control.
Parent
= originalParent;
System\Windows\Forms\FlowLayoutPanelTests.cs (3)
217
Parent
= control
228
yield return new object[] { new Control {
Parent
= new() } };
357
Parent
= parent
System\Windows\Forms\FlowLayoutSettingsTests.cs (1)
177
Parent
= parent
System\Windows\Forms\FormTests.cs (19)
936
Parent
= value
943
control.
Parent
= value;
957
Parent
= oldParent
960
control.
Parent
= value;
967
control.
Parent
= value;
1081
Parent
= value
1084
control.
Parent
= value;
1090
control.
Parent
= value;
1103
Parent
= parent
1110
control.
Parent
= parent;
1132
control.
Parent
= value;
1141
control.
Parent
= value;
1168
control.
Parent
= parent;
1173
control.
Parent
= parent;
1178
control.
Parent
= null;
1184
control.
Parent
= parent;
1196
Assert.Throws<ArgumentException>(() => control.
Parent
= control);
1205
Assert.Throws<ArgumentException>(() => control.
Parent
= parent);
1221
Assert.Throws<ArgumentException>("value", () => control.
Parent
= parent);
System\Windows\Forms\GroupBoxTests.cs (9)
270
Parent
= parent
318
Parent
= parent
418
Parent
= parent
491
Parent
= parent
1222
Parent
= parent
1319
Parent
= parent
1985
Parent
= parent,
2033
Parent
= parent,
2049
Parent
= parent,
System\Windows\Forms\HtmlDocumentTests.cs (96)
21
Parent
= parent
53
Parent
= parent
85
Parent
= parent
109
Parent
= parent
139
Parent
= parent
159
Parent
= parent
179
Parent
= parent
196
Parent
= parent
213
Parent
= parent
238
Parent
= parent
270
Parent
= parent
302
Parent
= parent
332
Parent
= parent
362
Parent
= parent
379
Parent
= parent
396
Parent
= parent
421
Parent
= parent
438
Parent
= parent
473
Parent
= parent
488
Parent
= parent
503
Parent
= parent
525
Parent
= parent
540
Parent
= parent
556
Parent
= parent
578
Parent
= parent
593
Parent
= parent
607
Parent
= parent
631
Parent
= parent
665
Parent
= parent
679
Parent
= parent
694
Parent
= parent
718
Parent
= parent
750
Parent
= parent
782
Parent
= parent
804
Parent
= parent
835
Parent
= parent
855
Parent
= parent
871
Parent
= parent
891
Parent
= parent
907
Parent
= parent
939
Parent
= parent
971
Parent
= parent
993
Parent
= parent
1023
Parent
= parent
1043
Parent
= parent
1059
Parent
= parent
1084
Parent
= parent
1107
Parent
= parent
1131
Parent
= parent
1168
Parent
= parent
1182
Parent
= parent
1197
Parent
= parent
1219
Parent
= parent
1249
Parent
= parent
1270
Parent
= parent
1302
Parent
= parent
1334
Parent
= parent
1356
Parent
= parent
1386
Parent
= parent
1405
Parent
= parent
1467
Parent
= parent
1505
Parent
= parent
1523
Parent
= parent
1543
Parent
= parent
1560
Parent
= parent
1576
Parent
= parent
1604
Parent
= parent
1621
Parent
= parent
1638
Parent
= parent
1661
Parent
= parent
1679
Parent
= parent
1694
Parent
= parent
1713
Parent
= parent
1731
Parent
= parent
1745
Parent
= parent
1762
Parent
= parent
1787
Parent
= parent
1807
Parent
= parent
1821
Parent
= parent
1839
Parent
= parent
1878
Parent
= parent
1905
Parent
= parent
1922
Parent
= parent
1939
Parent
= parent
1957
Parent
= parent
1977
Parent
= parent
1998
Parent
= parent
2036
Parent
= parent
2074
Parent
= parent
2112
Parent
= parent
2150
Parent
= parent
2188
Parent
= parent
2226
Parent
= parent
2264
Parent
= parent
2302
Parent
= parent
2340
Parent
= parent
System\Windows\Forms\HtmlElementTests.cs (127)
21
Parent
= parent
41
Parent
= parent
58
Parent
= parent
77
Parent
= parent
92
Parent
= parent
107
Parent
= parent
123
Parent
= parent
142
Parent
= parent
159
Parent
= parent
181
Parent
= parent
199
Parent
= parent
215
Parent
= parent
237
Parent
= parent
276
Parent
= parent
291
Parent
= parent
309
Parent
= parent
324
Parent
= parent
342
Parent
= parent
367
Parent
= parent
398
Parent
= parent
413
Parent
= parent
432
Parent
= parent
458
Parent
= parent
489
Parent
= parent
504
Parent
= parent
519
Parent
= parent
534
Parent
= parent
553
Parent
= parent
579
Parent
= parent
610
Parent
= parent
625
Parent
= parent
640
Parent
= parent
655
Parent
= parent
671
Parent
= parent
697
Parent
= parent
730
Parent
= parent
745
Parent
= parent
763
Parent
= parent
781
Parent
= parent
799
Parent
= parent
815
Parent
= parent
830
Parent
= parent
854
Parent
= parent
885
Parent
= parent
916
Parent
= parent
931
Parent
= parent
946
Parent
= parent
965
Parent
= parent
991
Parent
= parent
1022
Parent
= parent
1037
Parent
= parent
1058
Parent
= parent
1076
Parent
= parent
1094
Parent
= parent
1118
Parent
= parent
1148
Parent
= parent
1166
Parent
= parent
1184
Parent
= parent
1208
Parent
= parent
1238
Parent
= parent
1257
Parent
= parent
1276
Parent
= parent
1305
Parent
= parent
1338
Parent
= parent
1356
Parent
= parent
1380
Parent
= parent
1410
Parent
= parent
1425
Parent
= parent
1457
Parent
= parent
1495
Parent
= parent
1512
Parent
= parent
1577
Parent
= parent
1618
Parent
= parent
1660
Parent
= parent
1699
Parent
= parent
1718
Parent
= parent
1738
Parent
= parent
1767
Parent
= parent
1785
Parent
= parent
1803
Parent
= parent
1825
Parent
= parent
1843
Parent
= parent
1859
Parent
= parent
1891
Parent
= parent
1911
Parent
= parent
1926
Parent
= parent
1951
Parent
= parent
1966
Parent
= parent
1989
Parent
= parent
2027
Parent
= parent
2071
Parent
= parent
2109
Parent
= parent
2153
Parent
= parent
2189
Parent
= parent
2233
Parent
= parent
2268
Parent
= parent
2312
Parent
= parent
2328
Parent
= parent
2344
Parent
= parent
2364
Parent
= parent
2383
Parent
= parent
2401
Parent
= parent
2422
Parent
= parent
2441
Parent
= parent
2466
Parent
= parent
2481
Parent
= parent
2498
Parent
= parent
2521
Parent
= parent
2545
Parent
= parent
2586
Parent
= parent
2627
Parent
= parent
2668
Parent
= parent
2709
Parent
= parent
2750
Parent
= parent
2791
Parent
= parent
2832
Parent
= parent
2873
Parent
= parent
2914
Parent
= parent
2955
Parent
= parent
2996
Parent
= parent
3037
Parent
= parent
3078
Parent
= parent
3119
Parent
= parent
3160
Parent
= parent
3201
Parent
= parent
3242
Parent
= parent
3283
Parent
= parent
System\Windows\Forms\HtmlWindowTests.cs (4)
18
Parent
= parent
34
Parent
= parent
50
Parent
= parent
71
Parent
= parent,
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (10)
500
Parent
= parent
575
Parent
= parent
719
Parent
= parent
802
Parent
= parent
954
Parent
= parent
1033
Parent
= parent
1195
Parent
= parent
1278
Parent
= parent
1430
Parent
= parent
1509
Parent
= parent
System\Windows\Forms\ListBoxTests.cs (1)
933
Parent
= parent
System\Windows\Forms\MdiClientTests.cs (7)
185
Parent
= parent
264
Parent
= parent
380
Parent
= parent,
425
Parent
= parent,
699
Parent
= parent
851
Parent
= parent
1013
Parent
= parent
System\Windows\Forms\MenuStripTests.cs (2)
700
Parent
= parent
738
control.
Parent
= parent;
System\Windows\Forms\PanelTests.cs (4)
258
Parent
= parent
306
Parent
= parent
406
Parent
= parent
479
Parent
= parent
System\Windows\Forms\PictureBoxTests.cs (12)
1127
Parent
= value
1132
control.
Parent
= value;
1143
Parent
= oldParent
1146
control.
Parent
= value;
1151
control.
Parent
= value;
1162
Parent
= parent
1168
control.
Parent
= parent;
1188
control.
Parent
= parent;
1193
control.
Parent
= parent;
1198
control.
Parent
= null;
1204
control.
Parent
= parent;
1213
Assert.Throws<ArgumentException>(() => control.
Parent
= control);
System\Windows\Forms\RichTextBoxTests.cs (8)
463
Parent
= parent
2134
Parent
= parent
2191
Parent
= parent
2966
Parent
= parent
3089
Parent
= parent
7103
Parent
= parent,
7331
Parent
= parent,
10613
Parent
= parent,
System\Windows\Forms\ScrollableControlTests.cs (2)
1684
Parent
= parent,
1828
Parent
= parent,
System\Windows\Forms\ScrollBarTests.cs (2)
3114
vScrollBar.
Parent
= form;
3133
hScrollBar.
Parent
= form;
System\Windows\Forms\SplitterTests.cs (14)
535
Parent
= parent
604
Parent
= parent
1147
Parent
= parent,
1202
Parent
= parent,
1208
Parent
= parent,
1247
Parent
= parent,
1252
Parent
= parent,
1319
Parent
= parent,
1366
Parent
= parent,
1371
Parent
= parent,
2014
Parent
= parent,
2019
Parent
= parent,
2115
Parent
= parent,
2120
Parent
= parent,
System\Windows\Forms\TableLayoutPanelTests.cs (6)
1594
Parent
= parent
1700
Parent
= parent
1809
Parent
= parent
1927
Parent
= parent
2036
Parent
= parent
2116
extendee.
Parent
= control;
System\Windows\Forms\TabPageTests.cs (48)
411
Parent
= parent
476
Parent
= parent
578
Parent
= parent
594
Parent
= parent
637
Parent
= parent
1129
Parent
= parent,
1169
Parent
= parent,
1255
Parent
= parent
1321
Parent
= parent
1635
Parent
= parent
1699
Parent
= parent
1948
Parent
= parent
2157
Parent
= parent
2485
Parent
= value
2491
control.
Parent
= value;
2503
Parent
= oldParent
2506
control.
Parent
= value;
2512
control.
Parent
= value;
2524
Parent
= parent
2531
control.
Parent
= parent;
2550
control.
Parent
= value;
2558
control.
Parent
= value;
2581
control.
Parent
= parent;
2586
control.
Parent
= parent;
2591
control.
Parent
= null;
2597
control.
Parent
= parent;
2606
Assert.Throws<ArgumentException>(() => control.
Parent
= control);
2615
Assert.Throws<ArgumentException>(() => control.
Parent
= parent);
2804
Parent
= parent,
2840
Parent
= parent,
2892
Parent
= parent
2954
Parent
= parent
3176
Parent
= parent,
3212
Parent
= parent,
3266
Parent
= parent
3330
Parent
= parent
3576
Parent
= parent,
3650
Parent
= parent
3816
Parent
= grandparent
3820
Parent
= parent
3833
Parent
= grandparent
3837
Parent
= parent
3883
Parent
= parent
3935
Parent
= parent
4058
Parent
= parent,
4197
Parent
= parent,
4393
Parent
= parent
4710
Parent
= parent
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
497
Parent
= parent
558
Parent
= parent
640
Parent
= parent,
System\Windows\Forms\ToolStripControlHostTests.cs (1)
3172
Parent
= controlParent
System\Windows\Forms\ToolStripDropDownTests.cs (6)
705
Parent
= parent
1330
Parent
= parent,
1362
Parent
= parent,
1491
Parent
= parent
1512
Parent
= parent
2914
Parent
= parent
System\Windows\Forms\ToolStripTests.cs (18)
915
Parent
= parent
973
Parent
= parent
1090
Parent
= parent
1105
Parent
= parent
1407
Parent
= parent
1428
Parent
= parent
1880
Parent
= parent,
1911
Parent
= parent,
2016
Parent
= parent,
2134
Parent
= parent,
2459
Parent
= parent
2565
Parent
= parent
2922
Parent
= parent,
2986
Parent
= parent,
6025
Parent
= parent,
6167
Parent
= parent,
6922
Parent
= parent
6960
control.
Parent
= parent;
System\Windows\Forms\UserControlTests.cs (5)
315
Parent
= parent
373
Parent
= parent,
421
Parent
= parent
521
Parent
= parent
594
Parent
= parent
System\Windows\Forms\WebBrowserTests.cs (147)
162
Parent
= parent
190
Parent
= parent
229
Parent
= parent
243
Parent
= parent
255
Parent
= parent
293
Parent
= parent
329
Parent
= parent
342
Parent
= parent
354
Parent
= parent
374
Parent
= parent
399
Parent
= parent
413
Parent
= parent
441
Parent
= parent
457
Parent
= parent
479
Parent
= parent
491
Parent
= parent
512
Parent
= parent
526
Parent
= parent
547
Parent
= parent
559
Parent
= parent
571
Parent
= parent
596
Parent
= parent
608
Parent
= parent
629
Parent
= parent
643
Parent
= parent
664
Parent
= parent
676
Parent
= parent
710
Parent
= parent
733
Parent
= parent
832
Parent
= parent
844
Parent
= parent
865
Parent
= parent
882
Parent
= parent
901
Parent
= parent
913
Parent
= parent
934
Parent
= parent
948
Parent
= parent
968
Parent
= parent
980
Parent
= parent
1001
Parent
= parent
1015
Parent
= parent
1034
Parent
= parent
1046
Parent
= parent
1067
Parent
= parent
1110
Parent
= parent
1124
Parent
= parent
1143
Parent
= parent
1155
Parent
= parent
1176
Parent
= parent
1190
Parent
= parent
1202
Parent
= parent
1240
Parent
= parent
1293
Parent
= parent,
1403
Parent
= parent
1409
control.
Parent
= parent;
1420
Parent
= parent
1427
control.
Parent
= null;
1442
Parent
= parent
1449
control.
Parent
= null;
1462
Parent
= parent
1469
control.
Parent
= null;
1482
control.
Parent
= parent;
1488
control.
Parent
= null;
1504
control.
Parent
= parent;
1510
control.
Parent
= null;
1525
Parent
= parent
1532
control.
Parent
= null;
1553
control.
Parent
= parent;
1558
control.
Parent
= parent;
1563
control.
Parent
= null;
1569
control.
Parent
= parent;
1578
Assert.Throws<ArgumentException>(() => control.
Parent
= control);
1597
Parent
= parent
1611
Parent
= parent
1630
Parent
= parent
1642
Parent
= parent
1663
Parent
= parent
1677
Parent
= parent
1689
Parent
= parent
1727
Parent
= parent
1761
Parent
= parent
1774
Parent
= parent
1812
Parent
= parent
1848
Parent
= parent
1862
Parent
= parent
1881
Parent
= parent
1893
Parent
= parent
1914
Parent
= parent
1928
Parent
= parent
1947
Parent
= parent
1959
Parent
= parent
1971
Parent
= parent
2066
Parent
= parent
2097
Parent
= parent
2109
Parent
= parent
2121
Parent
= parent
2279
Parent
= parent
2359
Parent
= parent
2387
Parent
= parent
2444
Parent
= parent
2465
Parent
= parent
2489
Parent
= parent
2576
Parent
= parent
2679
Parent
= parent
2723
Parent
= parent
2867
Parent
= parent
2888
Parent
= parent
2968
Parent
= parent
2990
Parent
= parent
3005
Parent
= parent
3083
Parent
= parent
3105
Parent
= parent
3120
Parent
= parent
3132
Parent
= parent
3154
Parent
= parent
3169
Parent
= parent
3181
Parent
= parent
3193
Parent
= parent
3282
Parent
= parent
3305
Parent
= parent
3400
Parent
= parent
3423
Parent
= parent
3471
Parent
= parent
3487
Parent
= parent
3605
Parent
= parent,
3645
Parent
= parent
3657
Parent
= parent
3922
Parent
= parent
3944
Parent
= parent
3959
Parent
= parent
4017
Parent
= parent
4089
Parent
= parent
4106
Parent
= parent
4166
Parent
= parent
4224
Parent
= parent
4247
Parent
= parent
4262
Parent
= parent
4284
Parent
= parent
4299
Parent
= parent
4321
Parent
= parent
4336
Parent
= parent
4358
Parent
= parent
4373
Parent
= parent
4395
Parent
= parent
4410
Parent
= parent
4432
Parent
= parent
4447
Parent
= parent
TextBoxBaseTests.cs (10)
288
Parent
= parent
583
Parent
= parent
2009
Parent
= parent
2068
Parent
= parent,
3728
Parent
= parent
3778
Parent
= parent,
5864
Parent
= parent,
5918
control.
Parent
= parent;
6043
Parent
= parent,
6075
Parent
= parent,
WebBrowserBaseTests.cs (3)
240
Parent
= parent
818
Parent
= parent
844
Parent
= parent
System.Windows.Forms.UI.IntegrationTests (5)
ListBoxAccesibleObjectTests.cs (2)
36
using ListBox listBox = new() {
Parent
= form, Items = { "Item 1", "Item 2" } };
50
using ListBox listBox = new() {
Parent
= form, Items = { "Item 1", "Item 2" } };
ListBoxItemAccessibleObjestTests.cs (3)
15
using ListBox listBox = new() {
Parent
= form };
38
using ListBox listBoxDoubleClick = new() { Items = { "Item 1" },
Parent
= formDoubleClick };
53
using ListBox listBox = new() {
Parent
= form };
WinFormsControlsTest (1)
TaskDialogSamples.cs (1)
26
Parent
= this,
919 references to Parent
PresentationUI (3)
MS\Internal\Documents\DialogDivider.cs (3)
51
if (
Parent
!= null)
54
base.SetBoundsCore(
Parent
.Location.X, y,
Parent
.Size.Width, 1, specified);
System.Windows.Forms (38)
System\Windows\Forms\ActiveX\AxHost.cs (3)
1937
/// The <see cref="ContainingControl"/> property value can be different from the <see cref="Control.
Parent
"/>
1941
/// property value of the ActiveX control is the <see cref="Form"/>, and the <see cref="Control.
Parent
"/>
2137
control = control.
Parent
;
System\Windows\Forms\Control.cs (6)
2349
return (control.Site is not null && control.Site.DesignMode) || control.
Parent
is null ?
2350
control.Site : GetSitedParentSite(control.
Parent
);
5599
string.Format(SR.ParentPropertyNotSetInGetNextControl, nameof(
Parent
), ctl));
6331
Control? parentControl = control.
Parent
;
6334
parentControl = parentControl.
Parent
;
6940
if (Equals(Properties.GetValueOrDefault<object>(s_dataContextProperty),
Parent
?.DataContext))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAccessibleObject.cs (1)
28
_owningPropertyGrid = owningDropDownButton.
Parent
as PropertyGridView;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (2)
313
Control? parent = _detailsButton.
Parent
;
317
parent = parent.
Parent
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
572
if (_createNewLinkLabel is not null && _createNewLinkLabel.
Parent
== this)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
2406
if (
Parent
?.IsAccessibilityObjectCreated == true)
2408
Parent
.AccessibilityObject.InternalRaiseAutomationNotification(
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (3)
147
if (string.IsNullOrEmpty(toolStripPanelName) && toolStripPanel.
Parent
is ToolStripContainer && !string.IsNullOrEmpty(toolStripPanel.
Parent
.Name))
149
toolStripPanelName = $"{toolStripPanel.
Parent
.Name}.{toolStripPanel.Dock}";
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.SettingsStub.cs (4)
26
if (toolStrip.
Parent
is ToolStripPanel parentPanel)
32
else if (parentPanel.
Parent
is ToolStripContainer && !string.IsNullOrEmpty(parentPanel.
Parent
.Name))
35
ToolStripPanelName = $"{parentPanel.
Parent
.Name}.{parentPanel.Dock}";
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (2)
104
(state & STATE_HOT) != 0 ? (HGDIOBJ)
Parent
!.FontHandle : default);
106
GC.KeepAlive(
Parent
);
System\Windows\Forms\Form.AccessibleObject.cs (1)
28
: owner.
Parent
?.RectangleToScreen(owner.Bounds) ?? owner.Bounds;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
478
if (_activeControl?.
Parent
is not null && !_activeControl.
Parent
.IsTopMdiWindowClosing)
667
Control? parentControl =
Parent
;
675
parentControl = parentControl.
Parent
;
System\Windows\Forms\Layout\DefaultLayout.cs (3)
692
if (!control._childControlsNeedAnchorLayout || control.
Parent
?._childControlsNeedAnchorLayout == true)
835
Control? parent = control.
Parent
;
877
Rectangle displayRectangle = control.
Parent
!.DisplayRectangle;
System\Windows\Forms\Panels\FlowLayoutPanel.cs (1)
53
bool IExtenderProvider.CanExtend(object obj) => obj is Control control && control.
Parent
== this;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
211
get => base.
Parent
;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
177
obj is Control control && control.
Parent
== this;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
596
if (SystemInformation.HighContrast &&
Parent
is Control parent)
System\Windows\Forms\Printing\PrintPreviewControl.ScrollBarAccessibleObject.cs (2)
17
this.TryGetOwnerAs(out ScrollBar? scrollBar) && scrollBar.
Parent
is PrintPreviewControl printPreviewControl
25
if (!this.TryGetOwnerAs(out ScrollBar? scrollBar) || scrollBar.
Parent
is not PrintPreviewControl printPreviewControl)
System.Windows.Forms.Design (210)
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (2)
23
if (_grid is null &&
Parent
is not null)
25
foreach (Control c in
Parent
.Controls)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (4)
179
if (
Parent
is not null && Bounds.Contains(
Parent
.PointToClient(Cursor.Position)) && !_dropDownRectangle.Contains(mevent.Location))
282
if (
Parent
is not null && Bounds.Contains(
Parent
.PointToClient(Cursor.Position)))
System\ComponentModel\Design\ToolStripContainerActionList.cs (4)
101
&& _toolStripContainer.
Parent
== root
116
if (_designerHost.RootComponent is Control root && _toolStripContainer.
Parent
is null)
136
|| _toolStripContainer.
Parent
!= root
172
Control? oldParent = control.
Parent
;
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
89
Control? parentControl = selectedControl.
Parent
;
103
parentControl = parentControl.
Parent
;
System\Windows\Forms\Design\Behavior\BehaviorService.cs (4)
267
if (c.
Parent
is null)
273
PInvokeCore.MapWindowPoints(c.
Parent
, _adornerWindow, ref pt);
274
if (c.
Parent
.IsMirrored)
296
if (c.
Parent
is null)
System\Windows\Forms\Design\Behavior\ContainerSelectorBehavior.cs (4)
215
Control requiredParent = _containerControl.
Parent
;
221
if ((comp is Control ctrl) && (ctrl.
Parent
is not null))
223
if (!ctrl.
Parent
.Equals(requiredParent))
250
DropSourceBehavior dsb = new(dragControls, _containerControl.
Parent
, controlOrigin);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (7)
478
control.
Parent
is null || // control must have a parent.
508
(targetControl.
Parent
is not null) &&
509
(targetControl.
Parent
.Equals(control)))
546
if (rootControl.
Parent
is not null && rootControl.
Parent
.IsMirrored)
632
Control? currentParent = child.
Parent
;
640
currentParent = currentParent.
Parent
;
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (7)
253
else if (!localDrag && currentControl.
Parent
.Equals(dragSource))
272
if (currentControl.
Parent
is ScrollableControl p)
448
initialDropPoint = ((Control)_dragComponents[_primaryComponentIndex].dragComponent).
Parent
.PointToClient(initialDropPoint);
453
if (((Control)(_dragComponents[_primaryComponentIndex].dragComponent)).
Parent
.IsMirrored)
888
if (parentControl.
Parent
is not null && parentControl.
Parent
.IsMirrored)
936
Control primaryParent = primaryControl?.
Parent
;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (13)
264
if (_resizeComponents[0].resizeControl is Control control && control.
Parent
is not null)
266
PropertyDescriptor snapProp = TypeDescriptor.GetProperties(control.
Parent
)["SnapToGrid"];
267
if (snapProp is not null && (bool)snapProp.GetValue(control.
Parent
))
269
PropertyDescriptor gridProp = TypeDescriptor.GetProperties(control.
Parent
)["GridSize"];
273
_parentGridSize = (Size)gridProp.GetValue(control.
Parent
);
620
if ((_didSnap) && (targetControl.
Parent
is not null))
622
controlBounds.Location = _behaviorService.MapAdornerWindowPoint(targetControl.
Parent
.Handle, controlBounds.Location);
623
if (targetControl.
Parent
.IsMirrored)
632
Color backColor = targetControl.
Parent
is not null ? targetControl.
Parent
.BackColor : Color.Empty;
654
if (control.
Parent
is not null && control.
Parent
.IsMirrored)
837
Control parent = control.
Parent
;
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (7)
104
if (_relatedControl.
Parent
is not null)
106
if (currentSelection != _relatedControl.
Parent
)
108
selectionService?.SetSelectedComponents(new object[] { _relatedControl.
Parent
}, SelectionTypes.Replace);
112
Control parent = _relatedControl.
Parent
;
165
Control? oldParent = control.
Parent
;
230
if (dragComponent is ToolStrip tool && tool.
Parent
!= _relatedControl)
237
if (expandPanel && _relatedControl.
Parent
is { } root)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (2)
68
ToolStripContainer? parent = _relatedPanel?.
Parent
as ToolStripContainer;
72
_baseParent = parent.
Parent
;
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (3)
66
Control oldParent = toolStrip.
Parent
;
124
if (c.
Parent
is ToolStripPanel)
126
dock = c.
Parent
.Dock;
System\Windows\Forms\Design\CommandSet.cs (23)
834
if (primaryControl.
Parent
!.IsMirrored)
860
if (host.GetDesigner(primaryControl.
Parent
!) is ParentControlDesigner parentDesigner)
875
if (primaryControl.
Parent
!.IsMirrored)
900
if (primaryControl is not null && primaryControl.
Parent
!.IsMirrored)
908
if (primaryControl is not null && primaryControl.
Parent
!.IsMirrored)
1300
viewParent ??= comp.
Parent
;
1495
Control? parent = c.
Parent
;
1525
commonParent = selectedControl.
Parent
;
1527
else if (selectedControl.
Parent
!= commonParent && !commonParent.Contains(selectedControl))
1530
commonParent = selectedControl == commonParent || selectedControl.Contains(commonParent) ? selectedControl.
Parent
: null;
1618
Control? parent = c.
Parent
;
1651
commonParent = control.
Parent
;
1673
if (selectedControl.
Parent
!= controlCommonParent && !controlCommonParent.Contains(selectedControl))
1678
commonParent = selectedControl.
Parent
;
1686
parent = parent.
Parent
;
1794
parent = parent.
Parent
;
2158
UpdatePasteTabIndex(c, c.
Parent
);
3244
Control? parentControl = controls[0].
Parent
;
3518
return c1.
Parent
== c2.
Parent
&& c1.
Parent
is not null ? c1.
Parent
.Controls.GetChildIndex(c1) - c1.
Parent
.Controls.GetChildIndex(c2) : 1;
System\Windows\Forms\Design\ComponentTray.cs (1)
1572
if (c.
Parent
== this)
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
278
Control? parent = control.
Parent
;
System\Windows\Forms\Design\ControlCommandSet.cs (24)
316
for (Control parent = component.
Parent
; parent is not null; parent = parent.
Parent
)
332
okParent = component.
Parent
;
381
Control c = ctrl.
Parent
;
398
c = c.
Parent
;
467
bool fRTL = (primaryControl.
Parent
is not null && primaryControl.
Parent
.IsMirrored);
672
if (primaryControl.
Parent
.IsMirrored)
694
ParentControlDesigner parentDesigner = host.GetDesigner(primaryControl.
Parent
) as ParentControlDesigner;
712
if (primaryControl.
Parent
.IsMirrored)
738
if (primaryControl.
Parent
.IsMirrored)
747
if (primaryControl.
Parent
.IsMirrored)
1036
Control parent = control.
Parent
;
1406
next = current.
Parent
;
1533
Control p = ctl.
Parent
;
1592
ctl = ctl.
Parent
;
1602
Control p = ctl.
Parent
;
1732
if (cX.
Parent
== cY.
Parent
)
1734
Control parent = cX.
Parent
;
1748
else if (cX.
Parent
is null || cX.Contains(cY))
1752
else if (cY.
Parent
is null || cY.Contains(cX))
1759
return PARAM.ToInt(cX.
Parent
.Handle) - PARAM.ToInt(cY.
Parent
.Handle);
System\Windows\Forms\Design\ControlDesigner.cs (23)
86
if (Control.
Parent
is ScrollableControl parent)
96
if (Control.
Parent
is ScrollableControl parent)
178
Component is Control c && c.
Parent
is not null ? c.
Parent
: base.ParentComponent;
236
if (Control.
Parent
is not null && Control.
Parent
.IsMirrored)
288
if (Control.
Parent
is { } parent)
296
if (Control.IsMirrored != Control.
Parent
?.IsMirrored)
686
Control? parent = Control.
Parent
;
1420
requiredParent = control.
Parent
;
1422
else if (!requiredParent.Equals(control.
Parent
))
1438
DropSourceBehavior dsb = new(dragControls, Control.
Parent
, _mouseDragLast);
1459
parent = parent.
Parent
;
1488
parent = parent.
Parent
;
1517
parent = parent.
Parent
;
1907
if (_toolPassThrough && Control.
Parent
is not null)
1910
Control.
Parent
,
1956
if (_toolPassThrough && Control.
Parent
is not null)
1959
Control.
Parent
,
2003
if (_toolPassThrough && Control.
Parent
is not null)
2006
Control.
Parent
,
2115
if (Control is not null && Control.Size != Control.ClientSize && Control.
Parent
is { } parent)
2384
pt = Control.
Parent
!.PointToClient(pt);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
2048
if (
Parent
is not DesignBindingPicker picker)
System\Windows\Forms\Design\DesignerUtils.cs (1)
768
if (comp is Control {
Parent
: null })
System\Windows\Forms\Design\DocumentDesigner.cs (2)
639
c = c.
Parent
;
861
Control rootParent = root.
Parent
;
System\Windows\Forms\Design\DocumentDesigner.DocumentInheritanceService.cs (1)
74
child = child.
Parent
;
System\Windows\Forms\Design\FormatControl.cs (2)
422
for (Control? ctl =
Parent
; ctl is not null; ctl = ctl.
Parent
)
System\Windows\Forms\Design\FormatStringDialog.cs (1)
104
control = control.
Parent
;
System\Windows\Forms\Design\MonthCalendarDesigner.cs (2)
24
if (Control.
Parent
is null || !Control.
Parent
.IsMirrored)
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (2)
102
if (component is Control {
Parent
: null } childControl && childControl != parentControl)
111
if (component is Control {
Parent
: null } childControl and not Form { TopLevel: true }) // Don't add top-level forms
System\Windows\Forms\Design\OleDragDropHandler.ComponentDataObject.cs (1)
254
if (c.
Parent
is null)
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
1056
if (c.
Parent
is null || !compList.Contains(c.
Parent
))
System\Windows\Forms\Design\ParentControlDesigner.cs (11)
577
ScrollableControl p = newChild.
Parent
as ScrollableControl;
650
if (children[i].
Parent
!= parent)
998
Control parent = Control.
Parent
;
1075
Control parent = Control.
Parent
;
1324
if (comp is not null && comp.
Parent
is not null && comp.
Parent
== Control)
1555
if (InheritanceAttribute == InheritanceAttribute.InheritedReadOnly && draggedControl.
Parent
!= Control)
2153
Control oldParent = control.
Parent
;
2401
if (c.
Parent
!= parent)
2407
if (c.
Parent
is not null)
2409
Control cParent = c.
Parent
;
System\Windows\Forms\Design\SelectionUIHandler.cs (4)
98
Control? parent = controls[i].
Parent
;
117
Control? parent = controls[i].
Parent
;
274
Control? parent = controls[i].
Parent
;
521
Control? parent = controls[i].
Parent
;
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (2)
139
if (_control is not null && _control.
Parent
is not null)
141
Control parent = _control.
Parent
;
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
261
public override SelectionRules SelectionRules => Control.
Parent
is SplitContainer ? SelectionRules.Locked : SelectionRules.None;
System\Windows\Forms\Design\TabControlDesigner.cs (4)
198
if (page is not null && page.
Parent
== parent)
203
c = c.
Parent
;
419
if (page is not null && page.
Parent
== tabControl)
446
if (page is not null && page.
Parent
== tabControl && page == tabControl.SelectedTab)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (5)
1433
if (changingControl is not null && changingControl.
Parent
== Component &&
1454
if (c is not null && c.
Parent
is not null && c.
Parent
.Equals(Control) && e.Member is not null && (e.Member.Name == "Row" || e.Member.Name == "Column"))
1459
if (c is not null && c.
Parent
== Component &&
1480
if (c is not null && c.
Parent
== Table)
System\Windows\Forms\Design\TabOrder.cs (5)
213
if (_ctlHover.
Parent
is Control hoverParent)
341
if (control is null || control.
Parent
is not Control parent)
379
Control? parent = child.
Parent
;
397
parent = parent.
Parent
;
442
for (Control? c = control; c is not null; c = c.
Parent
)
System\Windows\Forms\Design\TabPageDesigner.cs (1)
21
if (ctl is not null && ctl.
Parent
is TabControl)
System\Windows\Forms\Design\ToolStripActionList.cs (1)
168
if (_toolStrip.
Parent
is not ToolStripPanel)
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (2)
105
if (c.
Parent
is null)
111
PInvokeCore.MapWindowPoints(c.
Parent
, _toolStripAdornerWindow, ref pt);
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (3)
210
while (control.
Parent
is not null)
212
if (control.
Parent
is ToolStripContainer parent)
217
control = control.
Parent
;
System\Windows\Forms\Design\ToolStripContentPanelDesigner.cs (1)
59
if (panel is not null && panel.
Parent
is ToolStripContainer)
System\Windows\Forms\Design\ToolStripDesigner.cs (6)
192
internal override bool ControlSupportsSnaplines => ToolStrip.
Parent
is not ToolStripPanel;
1321
Control parent = ToolStrip.
Parent
;
2311
ToolStrip.
Parent
.Visible = _currentVisible;
2361
if (ToolStrip.
Parent
is ToolStripPanel && !ToolStrip.
Parent
.Visible)
2364
ToolStrip.
Parent
.Visible = true;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
648
Control parent = _designMenu.
Parent
;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
297
Control parentControl = selectedControl.
Parent
;
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (4)
328
Control p = ctl.
Parent
;
374
ctl = ctl.
Parent
;
384
Control p = ctl.
Parent
;
1714
next = current.
Parent
;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (8)
93
get => Control.
Parent
is ToolStripContainer && (base.InheritanceAttribute == InheritanceAttribute.Inherited)
118
=> Control.
Parent
is ToolStripContainer
153
=> Control.
Parent
is not ToolStripContainer;
176
if (Control.
Parent
is ToolStripContainer { ContentPanel: { } contentPanel }
312
ToolStripContainer? parent = Control.
Parent
as ToolStripContainer;
416
if (Control.
Parent
is ToolStripContainer)
484
if (Control.
Parent
is ToolStripContainer)
537
if (Control.
Parent
is ToolStripContainer)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
862
_miniToolStrip.
Parent
?.SuspendLayout();
923
_miniToolStrip.
Parent
?.ResumeLayout();
939
_miniToolStrip.
Parent
?.SuspendLayout();
966
_miniToolStrip.
Parent
?.ResumeLayout();
System.Windows.Forms.Design.Tests (2)
System\ComponentModel\Design\ByteViewerTests.cs (1)
101
Assert.Null(control.
Parent
);
System\Windows\Forms\Design\FormatStringDialogTests.cs (1)
95
control = control.
Parent
;
System.Windows.Forms.Tests (655)
System\Windows\Forms\AxHostTests.cs (2)
94
Assert.Null(control.
Parent
);
188
Assert.Null(control.
Parent
);
System\Windows\Forms\ButtonBaseTests.cs (42)
91
Assert.Null(control.
Parent
);
2818
Assert.Same(value, control.
Parent
);
2823
Assert.Same(value, control.
Parent
);
2852
Assert.Same(value, control.
Parent
);
2857
Assert.Same(value, control.
Parent
);
2875
Assert.Same(value, control.
Parent
);
2881
Assert.Same(value, control.
Parent
);
2894
Assert.Same(parent, control.
Parent
);
2900
Assert.Same(parent, control.
Parent
);
2924
Assert.Same(value, control.
Parent
);
2932
Assert.Same(value, control.
Parent
);
2972
Assert.Same(value, control.
Parent
);
2980
Assert.Same(value, control.
Parent
);
3003
Assert.Same(parent, control.
Parent
);
3008
Assert.Same(parent, control.
Parent
);
3013
Assert.Null(control.
Parent
);
3019
Assert.Same(parent, control.
Parent
);
3028
Assert.Null(control.
Parent
);
4561
Assert.Null(control.
Parent
);
4576
Assert.Null(control.
Parent
);
4587
Assert.Null(control.
Parent
);
4613
Assert.Null(control.
Parent
);
4628
Assert.Null(control.
Parent
);
4639
Assert.Null(control.
Parent
);
4668
Assert.Null(control.
Parent
);
4683
Assert.Null(control.
Parent
);
4694
Assert.Null(control.
Parent
);
4716
Assert.Null(control.
Parent
);
4731
Assert.Null(control.
Parent
);
4742
Assert.Null(control.
Parent
);
4768
Assert.Null(control.
Parent
);
4783
Assert.Null(control.
Parent
);
4794
Assert.Null(control.
Parent
);
4823
Assert.Null(control.
Parent
);
4838
Assert.Null(control.
Parent
);
4849
Assert.Null(control.
Parent
);
4875
Assert.Null(control.
Parent
);
4886
Assert.Null(control.
Parent
);
4916
Assert.Null(control.
Parent
);
4927
Assert.Null(control.
Parent
);
4960
Assert.Null(control.
Parent
);
4971
Assert.Null(control.
Parent
);
System\Windows\Forms\ButtonTests.cs (1)
94
Assert.Null(control.
Parent
);
System\Windows\Forms\CheckBoxTests.cs (1)
95
Assert.Null(control.
Parent
);
System\Windows\Forms\ComboBoxTests.cs (1)
105
Assert.Null(control.
Parent
);
System\Windows\Forms\ContainerControlTests.cs (1)
99
Assert.Null(control.
Parent
);
System\Windows\Forms\ControlTests.ControlCollection.cs (108)
57
Assert.Same(owner, control1.
Parent
);
68
Assert.Same(owner, control1.
Parent
);
70
Assert.Same(owner, control2.
Parent
);
83
Assert.Same(owner, control1.
Parent
);
85
Assert.Same(owner, control2.
Parent
);
133
Assert.Same(owner, control1.
Parent
);
144
Assert.Same(owner, control1.
Parent
);
146
Assert.Same(owner, control2.
Parent
);
160
Assert.Same(owner, control1.
Parent
);
162
Assert.Same(owner, control2.
Parent
);
208
Assert.Same(owner2, control.
Parent
);
250
Assert.Same(owner, control.
Parent
);
262
Assert.Same(owner, control.
Parent
);
290
Assert.Same(owner, control1.
Parent
);
300
Assert.Same(owner, control1.
Parent
);
303
Assert.Same(owner, control2.
Parent
);
314
Assert.Same(owner, control1.
Parent
);
317
Assert.Same(owner, control2.
Parent
);
320
Assert.Same(owner, control3.
Parent
);
345
Assert.Same(owner, control.
Parent
);
374
Assert.Same(owner, control.
Parent
);
410
Assert.Same(owner, control.
Parent
);
450
Assert.Same(owner, control.
Parent
);
511
Assert.Same(owner, child1.
Parent
);
519
Assert.Same(owner, child1.
Parent
);
529
Assert.Same(owner, child2.
Parent
);
565
Assert.Same(owner, control.
Parent
);
609
Assert.Same(owner, control.
Parent
);
754
Assert.Same(owner, control.
Parent
);
913
Assert.Same(owner, control.
Parent
);
990
Assert.Same(owner, control.
Parent
);
1070
Assert.Same(owner, control.
Parent
);
1231
Assert.Same(owner, child1.
Parent
);
1232
Assert.Same(owner, child2.
Parent
);
1233
Assert.Same(owner, child3.
Parent
);
1245
Assert.Same(owner, child1.
Parent
);
1246
Assert.Same(owner, child2.
Parent
);
1247
Assert.Same(owner, child3.
Parent
);
1258
Assert.Same(owner, child1.
Parent
);
1259
Assert.Same(owner, child2.
Parent
);
1260
Assert.Same(owner, child3.
Parent
);
1308
Assert.Null(child1.
Parent
);
1309
Assert.Null(child2.
Parent
);
1310
Assert.Null(child3.
Parent
);
1321
Assert.Null(child1.
Parent
);
1322
Assert.Null(child2.
Parent
);
1323
Assert.Null(child3.
Parent
);
1360
Assert.Same(owner, child1.
Parent
);
1361
Assert.Same(owner, child2.
Parent
);
1362
Assert.Same(owner, child2.
Parent
);
1939
Assert.Null(child1.
Parent
);
1940
Assert.Same(owner, child2.
Parent
);
1949
Assert.Null(child1.
Parent
);
1950
Assert.Same(owner, child2.
Parent
);
1959
Assert.Null(child1.
Parent
);
1960
Assert.Same(owner, child2.
Parent
);
2003
Assert.Null(child1.
Parent
);
2004
Assert.Same(owner, child2.
Parent
);
2014
Assert.Null(child1.
Parent
);
2015
Assert.Same(owner, child2.
Parent
);
2025
Assert.Null(child1.
Parent
);
2026
Assert.Same(owner, child2.
Parent
);
2073
Assert.Null(child1.
Parent
);
2074
Assert.Same(owner, child2.
Parent
);
2086
Assert.Null(child1.
Parent
);
2087
Assert.Same(owner, child2.
Parent
);
2099
Assert.Null(child1.
Parent
);
2100
Assert.Same(owner, child2.
Parent
);
2155
Assert.Null(child1.
Parent
);
2156
Assert.Same(owner, child2.
Parent
);
2171
Assert.Null(child1.
Parent
);
2172
Assert.Same(owner, child2.
Parent
);
2187
Assert.Null(child1.
Parent
);
2188
Assert.Same(owner, child2.
Parent
);
2223
Assert.Same(owner1, control1.
Parent
);
2224
Assert.Same(owner2, control2.
Parent
);
2230
Assert.Same(owner1, control1.
Parent
);
2231
Assert.Same(owner2, control2.
Parent
);
2262
Assert.Null(control.
Parent
);
2309
Assert.Null(control.
Parent
);
2453
Assert.Null(control.
Parent
);
2586
Assert.Null(control.
Parent
);
2659
Assert.Null(control.
Parent
);
2737
Assert.Null(control.
Parent
);
2820
Assert.Null(child1.
Parent
);
2827
Assert.Null(child1.
Parent
);
2836
Assert.Null(child2.
Parent
);
2873
Assert.Same(owner, child1.
Parent
);
2874
Assert.Null(child2.
Parent
);
2884
Assert.Null(child1.
Parent
);
2885
Assert.Null(child2.
Parent
);
2967
Assert.Same(owner, child1.
Parent
);
2968
Assert.Null(child2.
Parent
);
2969
Assert.Same(owner, child3.
Parent
);
2980
Assert.Same(owner, child1.
Parent
);
2981
Assert.Null(child2.
Parent
);
2982
Assert.Null(child3.
Parent
);
3456
Assert.Same(owner, control1.
Parent
);
3468
Assert.Same(owner, control1.
Parent
);
3470
Assert.Same(owner, control2.
Parent
);
3484
Assert.Same(owner, control1.
Parent
);
3486
Assert.Same(owner, control2.
Parent
);
3540
Assert.Null(child1.
Parent
);
3541
Assert.Same(owner, child2.
Parent
);
3550
Assert.Null(child1.
Parent
);
3551
Assert.Same(owner, child2.
Parent
);
3560
Assert.Null(child1.
Parent
);
3561
Assert.Same(owner, child2.
Parent
);
System\Windows\Forms\ControlTests.cs (5)
77
Assert.Null(control.
Parent
);
166
Assert.Null(control.
Parent
);
262
Assert.Null(control.
Parent
);
358
Assert.Same(parent, control.
Parent
);
454
Assert.Same(parent, control.
Parent
);
System\Windows\Forms\ControlTests.Internals.cs (1)
211
Assert.Equal(parent, control.
Parent
);
System\Windows\Forms\ControlTests.Methods.cs (53)
854
Assert.Same(parent, control.
Parent
);
978
Assert.Null(control.
Parent
);
992
Assert.Null(control.
Parent
);
1002
Assert.Null(control.
Parent
);
1029
Assert.Null(control.
Parent
);
1043
Assert.Null(control.
Parent
);
1054
Assert.Null(control.
Parent
);
1083
Assert.Null(control.
Parent
);
1101
Assert.Null(control.
Parent
);
1104
Assert.Null(child1.
Parent
);
1105
Assert.Null(child2.
Parent
);
1122
Assert.Null(control.
Parent
);
1125
Assert.Null(child1.
Parent
);
1126
Assert.Null(child2.
Parent
);
1156
Assert.Null(control.
Parent
);
1170
Assert.Null(control.
Parent
);
1180
Assert.Null(control.
Parent
);
1211
Assert.Null(control.
Parent
);
1225
Assert.Null(control.
Parent
);
1239
Assert.Null(control.
Parent
);
1280
Assert.Null(control.
Parent
);
1294
Assert.Null(control.
Parent
);
1304
Assert.Null(control.
Parent
);
1329
Assert.Null(control.
Parent
);
1339
Assert.Null(control.
Parent
);
1366
Assert.Null(control.
Parent
);
1380
Assert.Null(control.
Parent
);
1391
Assert.Null(control.
Parent
);
1423
Assert.Same(parent, control.
Parent
);
1434
Assert.Same(parent, control.
Parent
);
1463
Assert.Null(control.
Parent
);
1481
Assert.Null(control.
Parent
);
1484
Assert.Null(child1.
Parent
);
1485
Assert.Null(child2.
Parent
);
1502
Assert.Null(control.
Parent
);
1505
Assert.Null(child1.
Parent
);
1506
Assert.Null(child2.
Parent
);
1549
Assert.Null(control.
Parent
);
1552
Assert.Same(control, child1.
Parent
);
1553
Assert.Same(control, child2.
Parent
);
1570
Assert.Null(control.
Parent
);
1573
Assert.Same(control, child1.
Parent
);
1574
Assert.Same(control, child2.
Parent
);
1604
Assert.Null(control.
Parent
);
1618
Assert.Null(control.
Parent
);
1628
Assert.Null(control.
Parent
);
1656
Assert.Null(control.
Parent
);
1666
Assert.Null(control.
Parent
);
1697
Assert.Null(control.
Parent
);
1711
Assert.Null(control.
Parent
);
1725
Assert.Null(control.
Parent
);
1764
Assert.Null(control.
Parent
);
1778
Assert.Null(control.
Parent
);
System\Windows\Forms\ControlTests.Properties.cs (15)
9689
Assert.Same(value, control.
Parent
);
9694
Assert.Same(value, control.
Parent
);
9709
Assert.Same(value, control.
Parent
);
9715
Assert.Same(value, control.
Parent
);
9728
Assert.Same(parent, control.
Parent
);
9734
Assert.Same(parent, control.
Parent
);
9753
Assert.Same(value, control.
Parent
);
9761
Assert.Same(value, control.
Parent
);
9784
Assert.Same(parent, control.
Parent
);
9789
Assert.Same(parent, control.
Parent
);
9794
Assert.Null(control.
Parent
);
9800
Assert.Same(parent, control.
Parent
);
9809
Assert.Null(control.
Parent
);
9820
Assert.Null(control.
Parent
);
9831
Assert.Null(control.
Parent
);
System\Windows\Forms\DataGridViewTests.cs (13)
829
Assert.Same(value, control.
Parent
);
834
Assert.Same(value, control.
Parent
);
849
Assert.Same(value, control.
Parent
);
855
Assert.Same(value, control.
Parent
);
868
Assert.Same(parent, control.
Parent
);
874
Assert.Same(parent, control.
Parent
);
893
Assert.Same(value, control.
Parent
);
900
Assert.Same(value, control.
Parent
);
922
Assert.Same(parent, control.
Parent
);
927
Assert.Same(parent, control.
Parent
);
932
Assert.Null(control.
Parent
);
938
Assert.Same(parent, control.
Parent
);
947
Assert.Null(control.
Parent
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
96
Assert.Null(control.
Parent
);
System\Windows\Forms\DateTimePickerTests.cs (1)
96
Assert.Null(control.
Parent
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
129
Assert.Null(control.
Parent
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
101
Assert.Null(control.
Parent
);
System\Windows\Forms\DomainUpDownTests.cs (1)
122
_sub.
Parent
.Should().BeNull();
System\Windows\Forms\ErrorProviderTests.cs (6)
1164
Assert.Same(newParent, control.
Parent
);
1167
Assert.Null(control.
Parent
);
1170
Assert.Same(originalParent, control.
Parent
);
1196
Assert.Same(newParent, control.
Parent
);
1199
Assert.Null(control.
Parent
);
1202
Assert.Same(originalParent, control.
Parent
);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
93
Assert.Null(control.
Parent
);
System\Windows\Forms\FormTests.cs (18)
131
Assert.Null(control.
Parent
);
938
Assert.Same(value, control.
Parent
);
944
Assert.Same(value, control.
Parent
);
961
Assert.Same(value, control.
Parent
);
968
Assert.Same(value, control.
Parent
);
1085
Assert.Same(value, control.
Parent
);
1091
Assert.Same(value, control.
Parent
);
1105
Assert.Same(parent, control.
Parent
);
1111
Assert.Same(parent, control.
Parent
);
1133
Assert.Same(value, control.
Parent
);
1142
Assert.Same(value, control.
Parent
);
1169
Assert.Same(parent, control.
Parent
);
1174
Assert.Same(parent, control.
Parent
);
1179
Assert.Null(control.
Parent
);
1185
Assert.Same(parent, control.
Parent
);
1197
Assert.Null(control.
Parent
);
1206
Assert.Null(control.
Parent
);
1222
Assert.NotNull(control.
Parent
);
System\Windows\Forms\GroupBoxTests.cs (1)
81
Assert.Null(control.
Parent
);
System\Windows\Forms\HScrollBarTests.cs (1)
91
Assert.Null(control.
Parent
);
System\Windows\Forms\LabelTests.cs (1)
86
Assert.Null(control.
Parent
);
System\Windows\Forms\ListBoxTests.cs (1)
98
Assert.Null(control.
Parent
);
System\Windows\Forms\ListControlTests.cs (1)
87
Assert.Null(control.
Parent
);
System\Windows\Forms\ListViewTests.cs (1)
115
Assert.Null(control.
Parent
);
System\Windows\Forms\MdiClientTests.cs (1)
67
Assert.Null(control.
Parent
);
System\Windows\Forms\MenuStripTests.cs (1)
117
Assert.Null(control.
Parent
);
System\Windows\Forms\MonthCalendarTests.cs (1)
103
Assert.Null(control.
Parent
);
System\Windows\Forms\PanelTests.cs (1)
93
Assert.Null(control.
Parent
);
System\Windows\Forms\PictureBoxTests.cs (12)
88
Assert.Null(control.
Parent
);
1129
Assert.Same(value, control.
Parent
);
1133
Assert.Same(value, control.
Parent
);
1147
Assert.Same(value, control.
Parent
);
1152
Assert.Same(value, control.
Parent
);
1164
Assert.Same(parent, control.
Parent
);
1169
Assert.Same(parent, control.
Parent
);
1189
Assert.Same(parent, control.
Parent
);
1194
Assert.Same(parent, control.
Parent
);
1199
Assert.Null(control.
Parent
);
1205
Assert.Same(parent, control.
Parent
);
1214
Assert.Null(control.
Parent
);
System\Windows\Forms\PropertyGridTests.cs (1)
128
Assert.Null(control.
Parent
);
System\Windows\Forms\RadioButtonTests.cs (1)
94
Assert.Null(control.
Parent
);
System\Windows\Forms\RichTextBoxTests.cs (1)
103
Assert.Null(control.
Parent
);
System\Windows\Forms\ScrollableControlTests.cs (2)
92
Assert.Null(control.
Parent
);
2539
control.Controls.Add(activeControl.
Parent
?? activeControl);
System\Windows\Forms\ScrollBarTests.cs (1)
81
Assert.Null(control.
Parent
);
System\Windows\Forms\SplitterTests.cs (1)
81
Assert.Null(control.
Parent
);
System\Windows\Forms\StatusStripTests.cs (9)
116
Assert.Null(control.
Parent
);
911
Assert.Null(control.
Parent
);
926
Assert.Null(control.
Parent
);
937
Assert.Null(control.
Parent
);
964
Assert.Null(control.
Parent
);
979
Assert.Null(control.
Parent
);
990
Assert.Null(control.
Parent
);
1032
Assert.Null(control.
Parent
);
1043
Assert.Null(control.
Parent
);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (49)
70
Assert.Same(owner, value1.
Parent
);
88
Assert.Same(owner, value1.
Parent
);
92
Assert.Same(owner, value2.
Parent
);
116
Assert.Same(owner, value1.
Parent
);
118
Assert.Same(owner, value2.
Parent
);
200
Assert.Same(owner, value1.
Parent
);
227
Assert.Same(owner, value1.
Parent
);
231
Assert.Same(owner, value2.
Parent
);
268
Assert.Same(owner, value1.
Parent
);
272
Assert.Same(owner, value2.
Parent
);
367
Assert.Same(owner, value1.
Parent
);
388
Assert.Same(owner, value1.
Parent
);
392
Assert.Same(owner, value2.
Parent
);
422
Assert.Same(owner, value1.
Parent
);
424
Assert.Same(owner, value2.
Parent
);
515
Assert.Same(owner, value1.
Parent
);
545
Assert.Same(owner, value1.
Parent
);
549
Assert.Same(owner, value2.
Parent
);
592
Assert.Same(owner, value1.
Parent
);
596
Assert.Same(owner, value2.
Parent
);
667
Assert.Same(owner, value.
Parent
);
701
Assert.Same(owner, value.
Parent
);
724
Assert.Same(owner, value.
Parent
);
743
Assert.Same(owner, value.
Parent
);
923
Assert.Same(owner, value1.
Parent
);
927
Assert.Null(value2.
Parent
);
943
Assert.Same(owner, value1.
Parent
);
947
Assert.Null(value2.
Parent
);
963
Assert.Null(value1.
Parent
);
967
Assert.Null(value2.
Parent
);
1035
Assert.Same(owner, value1.
Parent
);
1039
Assert.Null(value2.
Parent
);
1058
Assert.Same(owner, value1.
Parent
);
1062
Assert.Null(value2.
Parent
);
1084
Assert.Null(value1.
Parent
);
1088
Assert.Null(value2.
Parent
);
1153
Assert.Same(owner, value1.
Parent
);
1157
Assert.Null(value2.
Parent
);
1176
Assert.Same(owner, value1.
Parent
);
1180
Assert.Null(value2.
Parent
);
1199
Assert.Null(value1.
Parent
);
1203
Assert.Null(value2.
Parent
);
1272
Assert.Same(owner, value1.
Parent
);
1276
Assert.Null(value2.
Parent
);
1295
Assert.Same(owner, value1.
Parent
);
1299
Assert.Null(value2.
Parent
);
1321
Assert.Null(value1.
Parent
);
1325
Assert.Null(value2.
Parent
);
1438
Assert.Same(owner, value.
Parent
);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (160)
56
Assert.Same(owner, value1.
Parent
);
75
Assert.Same(owner, value1.
Parent
);
79
Assert.Same(owner, value2.
Parent
);
104
Assert.Same(owner, value1.
Parent
);
106
Assert.Same(owner, value2.
Parent
);
189
Assert.Same(owner, value1.
Parent
);
217
Assert.Same(owner, value1.
Parent
);
221
Assert.Same(owner, value2.
Parent
);
259
Assert.Same(owner, value1.
Parent
);
263
Assert.Same(owner, value2.
Parent
);
359
Assert.Same(owner, value1.
Parent
);
381
Assert.Same(owner, value1.
Parent
);
385
Assert.Same(owner, value2.
Parent
);
416
Assert.Same(owner, value1.
Parent
);
418
Assert.Same(owner, value2.
Parent
);
510
Assert.Same(owner, value1.
Parent
);
541
Assert.Same(owner, value1.
Parent
);
545
Assert.Same(owner, value2.
Parent
);
589
Assert.Same(owner, value1.
Parent
);
593
Assert.Same(owner, value2.
Parent
);
666
Assert.Same(owner, value.
Parent
);
702
Assert.Same(owner, value.
Parent
);
727
Assert.Same(owner, value.
Parent
);
747
Assert.Same(owner, value.
Parent
);
901
Assert.Same(owner, page.
Parent
);
922
Assert.Same(owner, page.
Parent
);
943
Assert.Same(owner, page.
Parent
);
964
Assert.Same(owner, page.
Parent
);
1003
Assert.Same(owner, value1.
Parent
);
1021
Assert.Same(owner, value1.
Parent
);
1025
Assert.Same(owner, value2.
Parent
);
1049
Assert.Same(owner, value1.
Parent
);
1051
Assert.Same(owner, value2.
Parent
);
1115
Assert.Same(owner, child1.
Parent
);
1116
Assert.Same(owner, child2.
Parent
);
1117
Assert.Same(owner, child3.
Parent
);
1127
Assert.Same(owner, child1.
Parent
);
1128
Assert.Same(owner, child2.
Parent
);
1129
Assert.Same(owner, child3.
Parent
);
1140
Assert.Same(owner, child1.
Parent
);
1141
Assert.Same(owner, child2.
Parent
);
1142
Assert.Same(owner, child3.
Parent
);
1364
Assert.Null(child1.
Parent
);
1365
Assert.Null(child2.
Parent
);
1366
Assert.Null(child3.
Parent
);
1379
Assert.Null(child1.
Parent
);
1380
Assert.Null(child2.
Parent
);
1381
Assert.Null(child3.
Parent
);
1485
Assert.Null(child1.
Parent
);
1486
Assert.Null(child2.
Parent
);
1487
Assert.Null(child3.
Parent
);
1503
Assert.Null(child1.
Parent
);
1504
Assert.Null(child2.
Parent
);
1505
Assert.Null(child3.
Parent
);
1998
Assert.Same(owner, value1.
Parent
);
2017
Assert.Same(owner, value1.
Parent
);
2021
Assert.Same(owner, value2.
Parent
);
2048
Assert.Same(owner, value1.
Parent
);
2050
Assert.Same(owner, value2.
Parent
);
2126
Assert.Same(owner, value1.
Parent
);
2154
Assert.Same(owner, value1.
Parent
);
2158
Assert.Same(owner, value2.
Parent
);
2198
Assert.Same(owner, value1.
Parent
);
2202
Assert.Same(owner, value2.
Parent
);
2302
Assert.Same(owner, value1.
Parent
);
2324
Assert.Same(owner, value1.
Parent
);
2328
Assert.Same(owner, value2.
Parent
);
2361
Assert.Same(owner, value1.
Parent
);
2363
Assert.Same(owner, value2.
Parent
);
2459
Assert.Same(owner, value1.
Parent
);
2490
Assert.Same(owner, value1.
Parent
);
2494
Assert.Same(owner, value2.
Parent
);
2540
Assert.Same(owner, value1.
Parent
);
2544
Assert.Same(owner, value2.
Parent
);
2619
Assert.Same(owner, value.
Parent
);
2653
Assert.Same(owner, value.
Parent
);
2676
Assert.Same(owner, value.
Parent
);
2697
Assert.Same(owner, value.
Parent
);
2715
Assert.Same(owner, page.
Parent
);
2735
Assert.Same(owner, page.
Parent
);
2755
Assert.Same(owner, page.
Parent
);
2775
Assert.Same(owner, page.
Parent
);
3044
Assert.Same(owner, value1.
Parent
);
3063
Assert.Same(owner, value1.
Parent
);
3067
Assert.Same(owner, value2.
Parent
);
3094
Assert.Same(owner, value1.
Parent
);
3096
Assert.Same(owner, value2.
Parent
);
3374
Assert.Same(owner, page1.
Parent
);
3375
Assert.Same(owner, page2.
Parent
);
3376
Assert.Same(owner, page3.
Parent
);
3377
Assert.Null(newPage.
Parent
);
3419
Assert.Same(owner, page1.
Parent
);
3420
Assert.Same(owner, page2.
Parent
);
3421
Assert.Same(owner, page3.
Parent
);
3422
Assert.Null(newPage.
Parent
);
3459
Assert.Same(owner, page1.
Parent
);
3460
Assert.Same(owner, page2.
Parent
);
3461
Assert.Same(owner, page3.
Parent
);
3462
Assert.Null(newPage.
Parent
);
3515
Assert.Same(owner, page1.
Parent
);
3516
Assert.Same(owner, page2.
Parent
);
3517
Assert.Same(owner, page3.
Parent
);
3518
Assert.Null(newPage.
Parent
);
3773
Assert.Same(owner, page1.
Parent
);
3774
Assert.Same(owner, page2.
Parent
);
3775
Assert.Same(owner, page3.
Parent
);
3776
Assert.Null(newPage.
Parent
);
3817
Assert.Same(owner, page1.
Parent
);
3818
Assert.Same(owner, page2.
Parent
);
3819
Assert.Same(owner, page3.
Parent
);
3820
Assert.Null(newPage.
Parent
);
3856
Assert.Same(owner, page1.
Parent
);
3857
Assert.Same(owner, page2.
Parent
);
3858
Assert.Same(owner, page3.
Parent
);
3859
Assert.Null(newPage.
Parent
);
3911
Assert.Same(owner, page1.
Parent
);
3912
Assert.Same(owner, page2.
Parent
);
3913
Assert.Same(owner, page3.
Parent
);
3914
Assert.Null(newPage.
Parent
);
4010
Assert.Same(owner, value1.
Parent
);
4014
Assert.Null(value2.
Parent
);
4031
Assert.Same(owner, value1.
Parent
);
4035
Assert.Null(value2.
Parent
);
4052
Assert.Null(value1.
Parent
);
4056
Assert.Null(value2.
Parent
);
4125
Assert.Same(owner, value1.
Parent
);
4129
Assert.Null(value2.
Parent
);
4149
Assert.Same(owner, value1.
Parent
);
4153
Assert.Null(value2.
Parent
);
4176
Assert.Null(value1.
Parent
);
4180
Assert.Null(value2.
Parent
);
4248
Assert.Same(owner, value1.
Parent
);
4252
Assert.Null(value2.
Parent
);
4272
Assert.Same(owner, value1.
Parent
);
4276
Assert.Null(value2.
Parent
);
4296
Assert.Null(value1.
Parent
);
4300
Assert.Null(value2.
Parent
);
4372
Assert.Same(owner, value1.
Parent
);
4376
Assert.Null(value2.
Parent
);
4396
Assert.Same(owner, value1.
Parent
);
4400
Assert.Null(value2.
Parent
);
4423
Assert.Null(value1.
Parent
);
4427
Assert.Null(value2.
Parent
);
4544
Assert.Same(owner, value.
Parent
);
4729
Assert.Same(owner, value1.
Parent
);
4733
Assert.Null(value2.
Parent
);
4749
Assert.Same(owner, value1.
Parent
);
4753
Assert.Null(value2.
Parent
);
4769
Assert.Null(value1.
Parent
);
4773
Assert.Null(value2.
Parent
);
4839
Assert.Same(owner, child1.
Parent
);
4840
Assert.Null(child2.
Parent
);
4850
Assert.Null(child1.
Parent
);
4851
Assert.Null(child2.
Parent
);
4933
Assert.Same(owner, child1.
Parent
);
4934
Assert.Null(child2.
Parent
);
4935
Assert.Same(owner, child3.
Parent
);
4946
Assert.Same(owner, child1.
Parent
);
4947
Assert.Null(child2.
Parent
);
4948
Assert.Null(child3.
Parent
);
System\Windows\Forms\TabControlTests.cs (13)
85
Assert.Null(control.
Parent
);
5026
Assert.Null(child1.
Parent
);
5027
Assert.Null(child2.
Parent
);
5028
Assert.Null(child3.
Parent
);
5040
Assert.Null(child1.
Parent
);
5041
Assert.Null(child2.
Parent
);
5042
Assert.Null(child3.
Parent
);
5139
Assert.Null(child1.
Parent
);
5140
Assert.Null(child2.
Parent
);
5141
Assert.Null(child3.
Parent
);
5156
Assert.Null(child1.
Parent
);
5157
Assert.Null(child2.
Parent
);
5158
Assert.Null(child3.
Parent
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
101
Assert.Null(control.
Parent
);
System\Windows\Forms\TabPageTests.cs (16)
98
Assert.Null(control.
Parent
);
207
Assert.Null(control.
Parent
);
2487
Assert.Same(value, control.
Parent
);
2492
Assert.Same(value, control.
Parent
);
2507
Assert.Same(value, control.
Parent
);
2513
Assert.Same(value, control.
Parent
);
2526
Assert.Same(parent, control.
Parent
);
2532
Assert.Same(parent, control.
Parent
);
2551
Assert.Same(value, control.
Parent
);
2559
Assert.Same(value, control.
Parent
);
2582
Assert.Same(parent, control.
Parent
);
2587
Assert.Same(parent, control.
Parent
);
2592
Assert.Null(control.
Parent
);
2598
Assert.Same(parent, control.
Parent
);
2607
Assert.Null(control.
Parent
);
2616
Assert.Null(control.
Parent
);
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (5)
52
Assert.Same(owner, control1.
Parent
);
63
Assert.Same(owner, control1.
Parent
);
65
Assert.Same(owner, control2.
Parent
);
79
Assert.Same(owner, control1.
Parent
);
81
Assert.Same(owner, control2.
Parent
);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
95
Assert.Null(control.
Parent
);
System\Windows\Forms\ToolStripControlHostTests.cs (5)
3188
Assert.Same(controlParent, c.
Parent
);
3200
Assert.Same(controlParent, c.
Parent
);
3212
Assert.Same(controlParent, c.
Parent
);
3224
Assert.Same(controlParent, c.
Parent
);
3236
Assert.Same(controlParent, c.
Parent
);
System\Windows\Forms\ToolStripDropDownTests.cs (28)
125
Assert.Null(control.
Parent
);
3043
Assert.Null(control.
Parent
);
3059
Assert.Null(control.
Parent
);
3071
Assert.Null(control.
Parent
);
3099
Assert.Null(control.
Parent
);
3116
Assert.Null(control.
Parent
);
3129
Assert.Null(control.
Parent
);
3156
Assert.Null(control.
Parent
);
3172
Assert.Null(control.
Parent
);
3184
Assert.Null(control.
Parent
);
3216
Assert.Null(control.
Parent
);
3236
Assert.Null(control.
Parent
);
3256
Assert.Null(control.
Parent
);
3287
Assert.Null(control.
Parent
);
3303
Assert.Null(control.
Parent
);
3315
Assert.Null(control.
Parent
);
3342
Assert.Null(control.
Parent
);
3353
Assert.Null(control.
Parent
);
3380
Assert.Null(control.
Parent
);
3397
Assert.Null(control.
Parent
);
3410
Assert.Null(control.
Parent
);
3443
Assert.Null(control.
Parent
);
3456
Assert.Null(control.
Parent
);
3489
Assert.Null(control.
Parent
);
3509
Assert.Null(control.
Parent
);
3529
Assert.Null(control.
Parent
);
3578
Assert.Null(control.
Parent
);
3597
Assert.Null(control.
Parent
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
95
Assert.Null(control.
Parent
);
System\Windows\Forms\ToolStripTests.cs (21)
133
Assert.Null(control.
Parent
);
288
Assert.Null(control.
Parent
);
4361
Assert.Null(control.
Parent
);
4377
Assert.Null(control.
Parent
);
4389
Assert.Null(control.
Parent
);
4415
Assert.Null(control.
Parent
);
4431
Assert.Null(control.
Parent
);
4443
Assert.Null(control.
Parent
);
4475
Assert.Null(control.
Parent
);
4495
Assert.Null(control.
Parent
);
4515
Assert.Null(control.
Parent
);
4546
Assert.Null(control.
Parent
);
4562
Assert.Null(control.
Parent
);
4574
Assert.Null(control.
Parent
);
4601
Assert.Null(control.
Parent
);
4612
Assert.Null(control.
Parent
);
4643
Assert.Null(control.
Parent
);
4663
Assert.Null(control.
Parent
);
4683
Assert.Null(control.
Parent
);
4732
Assert.Null(control.
Parent
);
4751
Assert.Null(control.
Parent
);
System\Windows\Forms\TreeViewTests.cs (1)
94
Assert.Null(control.
Parent
);
System\Windows\Forms\UpDownBaseTests.cs (3)
107
Assert.Null(control.
Parent
);
1261
Assert.Same(control, ((Control)source).
Parent
);
1301
Assert.Same(control, ((Control)source).
Parent
);
System\Windows\Forms\UserControlTests.cs (1)
99
Assert.Null(control.
Parent
);
System\Windows\Forms\VScrollBarTests.cs (1)
90
Assert.Null(control.
Parent
);
System\Windows\Forms\WebBrowserTests.cs (36)
77
Assert.Null(control.
Parent
);
1405
Assert.Same(parent, control.
Parent
);
1410
Assert.Same(parent, control.
Parent
);
1422
Assert.Same(parent, control.
Parent
);
1428
Assert.Null(control.
Parent
);
1444
Assert.Same(parent, control.
Parent
);
1450
Assert.Null(control.
Parent
);
1464
Assert.Same(parent, control.
Parent
);
1470
Assert.Null(control.
Parent
);
1483
Assert.Same(parent, control.
Parent
);
1489
Assert.Null(control.
Parent
);
1505
Assert.Same(parent, control.
Parent
);
1511
Assert.Null(control.
Parent
);
1527
Assert.Same(parent, control.
Parent
);
1533
Assert.Null(control.
Parent
);
1554
Assert.Same(parent, control.
Parent
);
1559
Assert.Same(parent, control.
Parent
);
1564
Assert.Null(control.
Parent
);
1570
Assert.Same(parent, control.
Parent
);
1579
Assert.Null(control.
Parent
);
2527
Assert.Null(control.
Parent
);
2542
Assert.Null(control.
Parent
);
2553
Assert.Null(control.
Parent
);
2582
Assert.Null(control.
Parent
);
2597
Assert.Null(control.
Parent
);
2608
Assert.Null(control.
Parent
);
2630
Assert.Null(control.
Parent
);
2645
Assert.Null(control.
Parent
);
2656
Assert.Null(control.
Parent
);
2689
Assert.NotNull(control.
Parent
);
2700
Assert.NotNull(control.
Parent
);
2729
Assert.Null(control.
Parent
);
2744
Assert.Null(control.
Parent
);
2755
Assert.Null(control.
Parent
);
2781
Assert.Null(control.
Parent
);
2792
Assert.Null(control.
Parent
);
TextBoxTests.cs (1)
90
Assert.Null(control.
Parent
);
TrackBarTests.cs (1)
84
Assert.Null(control.
Parent
);
WindowsFormsIntegration (11)
System\Windows\Integration\ElementHost.cs (8)
999
OnPropertyChanged("Parent", this.
Parent
);
1545
while (control.
Parent
!= null)
1547
control = control.
Parent
;
1625
while (topMostParent.
Parent
!= null)
1627
topMostParent = topMostParent.
Parent
;
1647
Control parentControl = _hostControl.
Parent
;
1659
parentControl = parentControl.
Parent
;
1689
return (control.
Parent
== null) &&
System\Windows\Integration\ElementHostPropertyMap.cs (1)
69
Control parent = host.
Parent
;
System\Windows\Integration\WindowsFormsHost.cs (2)
942
&& (this.ActiveControl != null && this.ActiveControl.
Parent
== this))
944
SWF.Control c = this.ActiveControl.
Parent
;