1 write to Controls
System.Windows.Forms.UI.IntegrationTests (1)
PropertyGridTests.cs (1)
22
_form = new() {
Controls
= { _propertyGrid } };
1875 references to Controls
Accessibility_Core_App (203)
CommonControl1.Designer.cs (48)
95
this.groupBox1.
Controls
.Add(this.button12);
96
this.groupBox1.
Controls
.Add(this.button1);
97
this.groupBox1.
Controls
.Add(this.button10);
98
this.groupBox1.
Controls
.Add(this.button9);
99
this.groupBox1.
Controls
.Add(this.button8);
100
this.groupBox1.
Controls
.Add(this.button3);
101
this.groupBox1.
Controls
.Add(this.button4);
102
this.groupBox1.
Controls
.Add(this.button5);
103
this.groupBox1.
Controls
.Add(this.button2);
104
this.groupBox1.
Controls
.Add(this.button6);
228
this.groupBox2.
Controls
.Add(this.checkedListBox1);
229
this.groupBox2.
Controls
.Add(this.label7);
230
this.groupBox2.
Controls
.Add(this.checkBox3);
231
this.groupBox2.
Controls
.Add(this.checkBox2);
232
this.groupBox2.
Controls
.Add(this.checkBox1);
303
this.groupBox3.
Controls
.Add(this.comboBox2);
304
this.groupBox3.
Controls
.Add(this.label11);
305
this.groupBox3.
Controls
.Add(this.comboBox1);
306
this.groupBox3.
Controls
.Add(this.label10);
369
this.groupBox4.
Controls
.Add(this.listView1);
370
this.groupBox4.
Controls
.Add(this.label8);
406
this.groupBox5.
Controls
.Add(this.linkLabel6);
407
this.groupBox5.
Controls
.Add(this.linkLabel5);
408
this.groupBox5.
Controls
.Add(this.linkLabel4);
409
this.groupBox5.
Controls
.Add(this.linkLabel3);
410
this.groupBox5.
Controls
.Add(this.label6);
411
this.groupBox5.
Controls
.Add(this.label5);
412
this.groupBox5.
Controls
.Add(this.label4);
413
this.groupBox5.
Controls
.Add(this.label3);
414
this.groupBox5.
Controls
.Add(this.linkLabel2);
415
this.groupBox5.
Controls
.Add(this.linkLabel1);
416
this.groupBox5.
Controls
.Add(this.label2);
417
this.groupBox5.
Controls
.Add(this.label1);
561
this.groupBox6.
Controls
.Add(this.listBox1);
562
this.groupBox6.
Controls
.Add(this.label12);
599
this.groupBox7.
Controls
.Add(this.maskedTextBox1);
600
this.groupBox7.
Controls
.Add(this.label9);
630
this.groupBox8.
Controls
.Add(this.dateTimePicker3);
631
this.groupBox8.
Controls
.Add(this.dateTimePicker2);
632
this.groupBox8.
Controls
.Add(this.dateTimePicker1);
683
this.
Controls
.Add(this.groupBox8);
684
this.
Controls
.Add(this.groupBox7);
685
this.
Controls
.Add(this.groupBox6);
686
this.
Controls
.Add(this.groupBox5);
687
this.
Controls
.Add(this.groupBox4);
688
this.
Controls
.Add(this.groupBox3);
689
this.
Controls
.Add(this.groupBox2);
690
this.
Controls
.Add(this.groupBox1);
CommonControl2.Designer.cs (17)
262
this.
Controls
.Add(this.label1);
263
this.
Controls
.Add(this.monthCalendar1);
264
this.
Controls
.Add(this.label2);
265
this.
Controls
.Add(this.numericUpDown1);
266
this.
Controls
.Add(this.label3);
267
this.
Controls
.Add(this.pictureBox1);
268
this.
Controls
.Add(this.label4);
269
this.
Controls
.Add(this.progressBar1);
270
this.
Controls
.Add(this.radioButton1);
271
this.
Controls
.Add(this.label5);
272
this.
Controls
.Add(this.richTextBox1);
273
this.
Controls
.Add(this.label6);
274
this.
Controls
.Add(this.textBox1);
275
this.
Controls
.Add(this.label7);
276
this.
Controls
.Add(this.treeView1);
277
this.
Controls
.Add(this.label8);
278
this.
Controls
.Add(this.webBrowser1);
ContainerControls.Designer.cs (53)
124
this.flowLayoutPanel2.
Controls
.Add(this.button2);
125
this.flowLayoutPanel2.
Controls
.Add(this.button5);
126
this.flowLayoutPanel2.
Controls
.Add(this.button6);
196
this.groupBox1.
Controls
.Add(this.button7);
218
this.groupBox2.
Controls
.Add(this.button8);
241
this.groupBox3.
Controls
.Add(this.button9);
264
this.groupBox4.
Controls
.Add(this.button10);
419
this.tabControl5.
Controls
.Add(this.tabPage9);
420
this.tabControl5.
Controls
.Add(this.tabPage10);
430
this.tabPage9.
Controls
.Add(this.button19);
452
this.tabPage10.
Controls
.Add(this.tabControl6);
464
this.tabControl6.
Controls
.Add(this.tabPage11);
465
this.tabControl6.
Controls
.Add(this.tabPage12);
476
this.tabPage11.
Controls
.Add(this.button20);
498
this.tabPage12.
Controls
.Add(this.button21);
523
this.flowLayoutPanel1.
Controls
.Add(this.button4);
524
this.flowLayoutPanel1.
Controls
.Add(this.button1);
525
this.flowLayoutPanel1.
Controls
.Add(this.button3);
575
this.panel2.
Controls
.Add(this.tabControl2);
584
this.tabControl2.
Controls
.Add(this.tabPage1);
585
this.tabControl2.
Controls
.Add(this.tabPage2);
606
this.tabPage2.
Controls
.Add(this.button12);
640
this.panel1.
Controls
.Add(this.tabControl1);
649
this.tabControl1.
Controls
.Add(this.tabPage3);
650
this.tabControl1.
Controls
.Add(this.tabPage4);
660
this.tabPage3.
Controls
.Add(this.button11);
682
this.tabPage4.
Controls
.Add(this.button13);
706
this.flowLayoutPanel3.
Controls
.Add(this.button14);
707
this.flowLayoutPanel3.
Controls
.Add(this.button22);
708
this.flowLayoutPanel3.
Controls
.Add(this.button23);
747
this.panel3.
Controls
.Add(this.tabControl3);
756
this.tabControl3.
Controls
.Add(this.tabPage5);
757
this.tabControl3.
Controls
.Add(this.tabPage6);
778
this.tabPage6.
Controls
.Add(this.button24);
804
this.
Controls
.Add(this.panel3);
805
this.
Controls
.Add(this.flowLayoutPanel3);
806
this.
Controls
.Add(this.panel1);
807
this.
Controls
.Add(this.label5);
808
this.
Controls
.Add(this.label1);
809
this.
Controls
.Add(this.flowLayoutPanel1);
810
this.
Controls
.Add(this.tabControl5);
811
this.
Controls
.Add(this.label10);
812
this.
Controls
.Add(this.label7);
813
this.
Controls
.Add(this.label6);
814
this.
Controls
.Add(this.panel2);
815
this.
Controls
.Add(this.groupBox4);
816
this.
Controls
.Add(this.groupBox3);
817
this.
Controls
.Add(this.groupBox2);
818
this.
Controls
.Add(this.groupBox1);
819
this.
Controls
.Add(this.label4);
820
this.
Controls
.Add(this.label2);
821
this.
Controls
.Add(this.label3);
822
this.
Controls
.Add(this.flowLayoutPanel2);
ContainerControls2.Designer.cs (20)
91
this.splitContainer1.Panel1.
Controls
.Add(this.button15);
97
this.splitContainer1.Panel2.
Controls
.Add(this.button16);
359
this.tabControl4.
Controls
.Add(this.tabPage7);
360
this.tabControl4.
Controls
.Add(this.tabPage8);
421
this.
Controls
.Add(this.tableLayoutPanel2);
422
this.
Controls
.Add(this.label18);
423
this.
Controls
.Add(this.tabControl4);
424
this.
Controls
.Add(this.label17);
425
this.
Controls
.Add(this.splitContainer2);
426
this.
Controls
.Add(this.label16);
427
this.
Controls
.Add(this.panel4);
428
this.
Controls
.Add(this.label15);
429
this.
Controls
.Add(this.groupBox5);
430
this.
Controls
.Add(this.label14);
431
this.
Controls
.Add(this.flowLayoutPanel4);
432
this.
Controls
.Add(this.label13);
433
this.
Controls
.Add(this.tableLayoutPanel1);
434
this.
Controls
.Add(this.label9);
435
this.
Controls
.Add(this.splitContainer1);
436
this.
Controls
.Add(this.label8);
DataBindingExample.Designer.cs (19)
111
this.panel1.
Controls
.Add(this.comboBox1);
112
this.panel1.
Controls
.Add(this.label1);
113
this.panel1.
Controls
.Add(this.textBox1);
114
this.panel1.
Controls
.Add(this.button1);
115
this.panel1.
Controls
.Add(this.linkLabel1);
116
this.panel1.
Controls
.Add(this.maskedTextBox1);
117
this.panel1.
Controls
.Add(this.checkBox1);
118
this.panel1.
Controls
.Add(this.richTextBox1);
119
this.panel1.
Controls
.Add(this.domainUpDown1);
120
this.panel1.
Controls
.Add(this.numericUpDown1);
121
this.panel1.
Controls
.Add(this.radioButton1);
274
this.
Controls
.Add(this.dataGridView1);
275
this.
Controls
.Add(this.panel1);
276
this.
Controls
.Add(this.label2);
277
this.
Controls
.Add(this.treeView1);
278
this.
Controls
.Add(this.listBox1);
279
this.
Controls
.Add(this.label3);
280
this.
Controls
.Add(this.listView1);
281
this.
Controls
.Add(this.label4);
DataControls.Designer.cs (3)
353
this.
Controls
.Add(this.dataGridView2);
354
this.
Controls
.Add(this.dataGridView1);
355
this.
Controls
.Add(this.bindingNavigator1);
DialogControls.Designer.cs (4)
85
this.
Controls
.Add(this.SaveFileDialog);
86
this.
Controls
.Add(this.OpenFileDialog);
87
this.
Controls
.Add(this.FolderBrowserDialog);
88
this.
Controls
.Add(this.ColorDialog);
Main.Designer.cs (11)
169
this.
Controls
.Add(this.button12);
170
this.
Controls
.Add(this.button10);
171
this.
Controls
.Add(this.button9);
172
this.
Controls
.Add(this.button8);
173
this.
Controls
.Add(this.button7);
174
this.
Controls
.Add(this.button6);
175
this.
Controls
.Add(this.button5);
176
this.
Controls
.Add(this.button4);
177
this.
Controls
.Add(this.button3);
178
this.
Controls
.Add(this.button2);
179
this.
Controls
.Add(this.button1);
Menu_Toolbars_controls.Designer.cs (3)
595
Controls
.Add(toolStrip1);
596
Controls
.Add(statusStrip1);
597
Controls
.Add(menuStrip1);
MenuForm.Designer.cs (2)
62
this.
Controls
.Add(this.button2);
63
this.
Controls
.Add(this.button1);
PrintingControls.cs (2)
61
((ToolStripButton)((ToolStrip)printPreviewDialog1.
Controls
[1]).Items[0]).Enabled = false;// disable the direct print from printpreview.as when we click that Print button PrintPage event fires again.
62
foreach (ToolStripItem item in ((ToolStrip)printPreviewDialog1.
Controls
[1]).Items)
PrintingControls.Designer.cs (8)
162
this.
Controls
.Add(this.printPreviewControl1);
163
this.
Controls
.Add(this.label2);
164
this.
Controls
.Add(this.button1);
165
this.
Controls
.Add(this.btnPrint);
166
this.
Controls
.Add(this.btnPreView);
167
this.
Controls
.Add(this.btnSetting);
168
this.
Controls
.Add(this.txtPrint);
169
this.
Controls
.Add(this.label1);
RemainingControls.Designer.cs (8)
119
this.
Controls
.Add(this.trackBar1);
120
this.
Controls
.Add(this.label2);
121
this.
Controls
.Add(this.domainUpDown1);
122
this.
Controls
.Add(this.label1);
123
this.
Controls
.Add(this.propertyGrid2);
124
this.
Controls
.Add(this.propertyGrid1);
125
this.
Controls
.Add(this.vScrollBar1);
126
this.
Controls
.Add(this.hScrollBar1);
ToolStripContainer.Designer.cs (5)
102
this.toolStripContainer2.ContentPanel.
Controls
.Add(this.toolStrip1);
103
this.toolStripContainer2.ContentPanel.
Controls
.Add(this.statusStrip1);
115
this.toolStripContainer2.TopToolStripPanel.
Controls
.Add(this.menuStrip1);
594
this.
Controls
.Add(this.button1);
595
this.
Controls
.Add(this.toolStripContainer2);
DesignSurface (21)
MainForm.cs (9)
256
layoutPanel.
Controls
.Add(subButton1OfLayoutPanel);
257
layoutPanel.
Controls
.Add(subButton2OfLayoutPanel);
341
splitterPanel1.
Controls
.Add(richTextBox);
342
splitterPanel2.
Controls
.Add(scrollableControl);
344
toolStripContainer.ContentPanel.
Controls
.AddRange(splitContainer);
355
panel.
Controls
.Add(numericUpDown);
369
panel.
Controls
.Add(bindingNavigator);
428
splitContainer.Panel2.
Controls
.Remove(propertyGrid);
442
splitContainer.Panel2.
Controls
.Add(propertyGrid);
MainForm.Designer.cs (10)
75
this.splitContainer.Panel1.
Controls
.Add(this.tabControl1);
79
this.splitContainer.Panel2.
Controls
.Add(this.propertyGrid);
87
this.tabControl1.
Controls
.Add(this.tabPage1);
88
this.tabControl1.
Controls
.Add(this.tabPage2);
89
this.tabControl1.
Controls
.Add(this.tabPage3);
90
this.tabControl1.
Controls
.Add(this.tabPage4);
91
this.tabControl1.
Controls
.Add(this.tabPage5);
92
this.tabControl1.
Controls
.Add(this.tabPage6);
297
this.
Controls
.Add(this.splitContainer);
298
this.
Controls
.Add(this.menuStrip1);
MainForm.MyScrollableControl.cs (1)
15
Controls
.Add(control);
MainForm.MyUserControl.cs (1)
46
Controls
.AddRange(textBox2, textBox1, textBox);
Microsoft.AspNetCore.Components.WebView.WindowsForms (1)
BlazorWebView.cs (1)
45
((BlazorWebViewControlCollection)
Controls
).AddInternal(_webview);
Microsoft.VisualBasic.Forms (7)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (4)
70
Controls
.Add(TextBox)
71
Controls
.Add(Label)
72
Controls
.Add(OKButton)
73
Controls
.Add(MyCancelButton)
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (3)
149
Controls
.Add(ButtonCloseDialog)
150
Controls
.Add(ProgressBarWork)
151
Controls
.Add(LabelInfo)
NativeHost.ManagedControl (1)
ManagedControl.Designer.cs (1)
50
this.
Controls
.Add(this.button1);
PresentationUI (106)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (7)
137
this._tabControl.
Controls
.Add(this._summaryTab);
138
this._tabControl.
Controls
.Add(this._infoTab);
151
this._summaryTab.
Controls
.Add(this.tableLayoutPanel1);
423
this._infoTab.
Controls
.Add(this.tableLayoutPanel2);
523
this._documentDetailBox.
Controls
.Add(this._documentTable);
647
this._fileSystemBox.
Controls
.Add(this._fileTable);
731
this.
Controls
.Add(this.tableLayoutPanel3);
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (5)
77
this._buttonFlowLayoutPanel.
Controls
.Add(this._cancelButton);
78
this._buttonFlowLayoutPanel.
Controls
.Add(this._okButton);
116
this._listButtonFlowLayoutPanel.
Controls
.Add(this._addButton);
117
this._listButtonFlowLayoutPanel.
Controls
.Add(this._removeButton);
166
this.
Controls
.Add(this._mainDialogTableLayoutPanel);
MS\Internal\Documents\DialogBaseForm.cs (1)
95
foreach (Control c in control.
Controls
)
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (3)
59
_buttomControlLayoutpanel.
Controls
.Add(_cancelButton);
60
_buttomControlLayoutpanel.
Controls
.Add(_addButton);
221
Controls
.Add(_mainDialogTableLayoutPanel);
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (14)
64
_panel1.
Controls
.Add(_flowLayoutPanel2);
65
_panel1.
Controls
.Add(_flowLayoutPanel1);
75
_flowLayoutPanel2.
Controls
.Add(_flowLayoutPanel3);
86
_flowLayoutPanel3.
Controls
.Add(_flowLayoutPanel4);
87
_flowLayoutPanel3.
Controls
.Add(_panel2);
96
_flowLayoutPanel4.
Controls
.Add(_label1);
97
_flowLayoutPanel4.
Controls
.Add(_label2);
98
_flowLayoutPanel4.
Controls
.Add(_label3);
99
_flowLayoutPanel4.
Controls
.Add(_privacyLabel);
100
_flowLayoutPanel4.
Controls
.Add(_instructionlabel);
159
_panel2.
Controls
.Add(_pictureBox);
177
_flowLayoutPanel1.
Controls
.Add(_nextButton);
178
_flowLayoutPanel1.
Controls
.Add(_cancelButton);
209
Controls
.Add(_panel1);
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (9)
63
this._flowLayoutPanel1.
Controls
.Add(this._nextButton);
64
this._flowLayoutPanel1.
Controls
.Add(this._cancelButton);
94
this._flowLayoutPanel2.
Controls
.Add(this._label1);
95
this._flowLayoutPanel2.
Controls
.Add(this._flowLayoutPanel3);
96
this._flowLayoutPanel2.
Controls
.Add(this._tableLayoutPanel1);
117
this._flowLayoutPanel3.
Controls
.Add(this._pictureBox1);
118
this._flowLayoutPanel3.
Controls
.Add(this._label2);
214
this.
Controls
.Add(this._flowLayoutPanel2);
215
this.
Controls
.Add(this._flowLayoutPanel1);
MS\Internal\Documents\RMEnrollmentPage3.Designer.cs (2)
66
this.flowLayoutPanel2.
Controls
.Add(this.label2);
125
this.
Controls
.Add(this.tableLayoutPanel1);
MS\Internal\Documents\RMPermissions.cs (1)
187
permissionsFlowPanel.
Controls
.Add(permissionLabel);
MS\Internal\Documents\RMPermissions.Designer.cs (15)
61
this.mainContentFlowPanel.
Controls
.Add(this.authenticatedAsFlowPanel);
62
this.mainContentFlowPanel.
Controls
.Add(this.permissionsFlowPanel);
63
this.mainContentFlowPanel.
Controls
.Add(this.contactFlowPanel);
64
this.mainContentFlowPanel.
Controls
.Add(this.expirationFlowPanel);
65
this.mainContentFlowPanel.
Controls
.Add(this.divider);
66
this.mainContentFlowPanel.
Controls
.Add(this.actionsFlowPanel);
75
this.authenticatedAsFlowPanel.
Controls
.Add(this.authenticatedAsTextLabel);
76
this.authenticatedAsFlowPanel.
Controls
.Add(this.authenticatedAsLabel);
95
this.permissionsFlowPanel.
Controls
.Add(this.permissionsHeldLabel);
108
this.contactFlowPanel.
Controls
.Add(this.requestFromTextLabel);
109
this.contactFlowPanel.
Controls
.Add(this.requestFromLabel);
129
this.expirationFlowPanel.
Controls
.Add(this.expiresOnTextLabel);
130
this.expirationFlowPanel.
Controls
.Add(this.expiresOnLabel);
147
this.actionsFlowPanel.
Controls
.Add(this.closeButton);
188
this.
Controls
.Add(this.mainContentFlowPanel);
MS\Internal\Documents\RMPublishingDialog.Designer.cs (28)
78
this.flowLayoutPanelMain.
Controls
.Add(this.radioButtonUnrestricted);
79
this.flowLayoutPanelMain.
Controls
.Add(this.radioButtonPermissions);
80
this.flowLayoutPanelMain.
Controls
.Add(this.radioButtonTemplate);
81
this.flowLayoutPanelMain.
Controls
.Add(this.groupBoxMainContent);
82
this.flowLayoutPanelMain.
Controls
.Add(this.flowLayoutPanelActions);
119
this.groupBoxMainContent.
Controls
.Add(this.flowLayoutPanelUnrestricted);
120
this.groupBoxMainContent.
Controls
.Add(this.flowLayoutPanelPermissions);
121
this.groupBoxMainContent.
Controls
.Add(this.flowLayoutPanelTemplate);
131
this.flowLayoutPanelUnrestricted.
Controls
.Add(this.textBoxUnrestrictedText);
140
this.flowLayoutPanelPermissions.
Controls
.Add(this.flowLayoutPanelPeople);
141
this.flowLayoutPanelPermissions.
Controls
.Add(this.rightsTable);
142
this.flowLayoutPanelPermissions.
Controls
.Add(this.flowLayoutPanelContact);
143
this.flowLayoutPanelPermissions.
Controls
.Add(this.flowLayoutPanelExpires);
151
this.flowLayoutPanelTemplate.
Controls
.Add(this.labelSelectTemplate);
152
this.flowLayoutPanelTemplate.
Controls
.Add(this.comboBoxTemplates);
187
this.flowLayoutPanelPeople.
Controls
.Add(this.buttonPeoplePicker);
188
this.flowLayoutPanelPeople.
Controls
.Add(this.textBoxUserName);
189
this.flowLayoutPanelPeople.
Controls
.Add(this.buttonAddUser);
190
this.flowLayoutPanelPeople.
Controls
.Add(this.buttonEveryone);
191
this.flowLayoutPanelPeople.
Controls
.Add(this.buttonRemoveUser);
249
this.flowLayoutPanelContact.
Controls
.Add(this.checkBoxPermissionsContact);
250
this.flowLayoutPanelContact.
Controls
.Add(this.textBoxPermissionsContact);
274
this.flowLayoutPanelExpires.
Controls
.Add(this.checkBoxValidUntil);
275
this.flowLayoutPanelExpires.
Controls
.Add(this.datePickerValidUntil);
300
this.flowLayoutPanelActions.
Controls
.Add(this.buttonCancel);
301
this.flowLayoutPanelActions.
Controls
.Add(this.buttonSave);
302
this.flowLayoutPanelActions.
Controls
.Add(this.buttonSaveAs);
375
this.
Controls
.Add(this.flowLayoutPanelMain);
MS\Internal\Documents\SignatureSummaryDialog.cs (6)
269
_columnHeaderPanel.
Controls
.Add(nameHeader);
270
_columnHeaderPanel.
Controls
.Add(intentHeader);
271
_columnHeaderPanel.
Controls
.Add(locationHeader);
272
_columnHeaderPanel.
Controls
.Add(signByHeader);
295
_columnHeaderPanel.
Controls
.Add(statusHeader);
296
_columnHeaderPanel.
Controls
.Add(intentHeader);
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (9)
70
_flowpanelMiddleControls.
Controls
.Add(_buttonViewCert);
71
_flowpanelMiddleControls.
Controls
.Add(_buttonSign);
72
_flowpanelMiddleControls.
Controls
.Add(_buttonRequestAdd);
73
_flowpanelMiddleControls.
Controls
.Add(_buttonRequestDelete);
86
_flowpanelBottomControls.
Controls
.Add(_buttonDone);
166
_listboxMainPanel.
Controls
.Add(_listboxItemPanel);
167
_listboxMainPanel.
Controls
.Add(_columnHeaderPanel);
175
_listboxItemPanel.
Controls
.Add(_listBoxSummary);
207
Controls
.Add(_mainLayoutTable);
MS\Internal\Documents\SigningDialog.Designer.cs (5)
63
_userInputFlowPanel.
Controls
.Add(_signatureControlInputLayoutTable);
181
_buttonflowLayoutPanel.
Controls
.Add(_cancelButton);
182
_buttonflowLayoutPanel.
Controls
.Add(_signButton);
183
_buttonflowLayoutPanel.
Controls
.Add(_signSaveAsButton);
260
Controls
.Add(_mainLayoutTable);
MS\Internal\Documents\SigningProgress.Designer.cs (1)
60
Controls
.Add(_label);
System.Windows.Forms (134)
System\Windows\Forms\Accessibility\AccessibleObject.EnumVariantObject.cs (1)
155
/// <see cref="Control.
Controls
"/> collection).
System\Windows\Forms\ActiveX\AxHost.AxContainer.cs (1)
363
foreach (Control child in control.
Controls
)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
720
foreach (Control c in control.
Controls
)
System\Windows\Forms\Control.ControlCollection.cs (3)
70
value._parent?.
Controls
.Remove(value);
214
if (controlsToLookIn[i].
Controls
.Count > 0)
217
FindInternal(key, true, controlsToLookIn[i].
Controls
, foundControls);
System\Windows\Forms\Control.cs (18)
2632
value.
Controls
.Add(this);
2636
_parent?.
Controls
.Remove(this);
4310
_parent.
Controls
.SetChildIndex(this, 0);
4737
_parent?.
Controls
.Remove(this);
5408
List<ControlTabOrderHolder> holders = new(
Controls
.Count);
5410
foreach (Control c in
Controls
)
5602
string.Format(SR.ControlsPropertyNotSetInGetNextControl, nameof(
Controls
), parent));
5610
nameof(
Controls
),
8473
foreach (Control c in
Controls
)
8765
int count =
Controls
.Count;
8768
Control child =
Controls
[i];
8789
if (
Controls
.Count == 0)
9954
_parent.
Controls
.SetChildIndex(this, -1);
10848
int currentIndex =
Controls
.GetChildIndex(control);
10855
newIndex =
Controls
.GetChildIndex(previousControl, throwException: false) + 1;
10867
Controls
.SetChildIndex(control, newIndex);
10919
for (int i =
Controls
.GetChildIndex(control); --i >= 0;)
10921
Control child =
Controls
[i];
System\Windows\Forms\Controls\Buttons\RadioButton.cs (2)
412
ControlCollection children = parent.
Controls
;
435
ControlCollection children = parent.
Controls
;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
466
Controls
.Add(_horizScrollBar);
473
Controls
.Add(_vertScrollBar);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
6240
Debug.Assert(_editingPanel is null || _editingPanel.
Controls
.Count == 0);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (7)
1072
Debug.Assert(dataGridView.EditingPanel.
Controls
.Contains(dataGridView.EditingControl));
1073
dataGridView.EditingPanel.
Controls
.Remove(dataGridView.EditingControl);
1088
Debug.Assert(dataGridView.
Controls
.Contains(dataGridView.EditingPanel));
1089
((DataGridView.DataGridViewControlCollection)dataGridView.
Controls
).RemoveInternal(dataGridView.EditingPanel);
1095
Debug.Assert(dataGridView.EditingPanel.
Controls
.Count == 0);
2480
dgv.
Controls
.Add(dgv.EditingPanel);
2481
dgv.EditingPanel.
Controls
.Add(dgv.EditingControl);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
543
get => base.
Controls
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
82
Controls
.Add(_label);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (3)
50
foreach (Control control in
Controls
)
270
Controls
.Add(_detailsTextBox);
271
Controls
.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
51
Controls
.Add(_titleLabel);
52
Controls
.Add(_descriptionLabel);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
471
Controls
.Add(_scrollBar);
873
Controls
.Add(control);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (4)
567
Controls
.Remove(_currentControl);
574
Controls
.Remove(_createNewLinkLabel);
598
Controls
.Add(control);
652
Controls
.Add(CreateNewLink);
System\Windows\Forms\Controls\Splitter\Splitter.cs (2)
647
ControlCollection children = parent.
Controls
;
721
ControlCollection children = parent.
Controls
;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
1573
Controls
.Clear();
System\Windows\Forms\Controls\TabControl\TabControl.TabPageCollection.cs (5)
85
_owner.
Controls
.Add(value);
228
_owner.
Controls
.Add(tabPage);
235
_owner.
Controls
.SetChildIndex(tabPage, index);
319
_owner.
Controls
.Remove(value);
334
public void RemoveAt(int index) => _owner.
Controls
.RemoveAt(index);
System\Windows\Forms\Controls\TabControl\TabPage.TabPageAccessibleObject.cs (3)
33
if (index < 0 || index > owningTabPage.
Controls
.Count - 1)
38
return owningTabPage.
Controls
[index].AccessibilityObject;
44
=> this.IsOwnerHandleCreated(out TabPage? owningTabPage) ? owningTabPage.
Controls
.Count : -1;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
470
get => base.
Controls
;
System\Windows\Forms\Controls\ToolStrips\ToolStripContainer.cs (1)
347
get => base.
Controls
;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (4)
983
return GetFirstMenuStripRecursive(control.
Controls
);
1013
if ((controlsToLookIn[i].
Controls
is not null) && controlsToLookIn[i].
Controls
.Count > 0)
1016
MenuStrip? menuStrip = GetFirstMenuStripRecursive(controlsToLookIn[i].
Controls
);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (8)
517
if (
Controls
.Count > 0)
521
Control[] controls = new Control[
Controls
.Count];
522
Point[] controlLocations = new Point[
Controls
.Count];
534
Controls
.Clear();
614
ToolStripPanelControlCollection? controls =
Controls
as ToolStripPanelControlCollection;
765
Controls
.Add(toolStripToDrag);
1079
foreach (Control c1 in
Controls
)
1081
foreach (Control c2 in
Controls
)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.ToolStripPanelRowControlCollection.cs (1)
228
_owner.ToolStripPanel.
Controls
.Remove(control);
System\Windows\Forms\Controls\ToolStrips\ToolStripSettingsManager.cs (10)
29
FindControls(true, _form.
Controls
, toolStripControls);
51
FindControls(true, _form.
Controls
, toolStripControls);
135
FindControls(true, _form.
Controls
, toolStripPanels);
139
foreach (Control c in toolStripPanel.
Controls
)
215
FindControls(true, _form.
Controls
, toolStripControls);
262
if ((controlsToLookIn[i].
Controls
is not null) && controlsToLookIn[i].
Controls
.Count > 0)
265
FindControls(searchAllChildren, controlsToLookIn[i].
Controls
, foundControls);
287
Control.ControlCollection controlsCollection = start.
Controls
;
301
Control.ControlCollection controlsCollection = start.
Controls
;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
65
Controls
.AddRange([_upDownButtons, _upDownEdit]);
System\Windows\Forms\Controls\WebBrowser\WebBrowserContainer.cs (1)
265
foreach (Control c in ctl.
Controls
)
System\Windows\Forms\Design\ComponentEditorForm.cs (2)
293
Controls
.Clear();
294
Controls
.AddRange(
System\Windows\Forms\Design\ComponentEditorPage.cs (1)
228
site?.GetControl()?.
Controls
.Add(this);
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (5)
263
Controls
.Add(_pictureBox);
268
Controls
.Add(_message);
305
Controls
.Add(button);
316
Controls
.Add(button);
330
Controls
.Add(_details);
System\Windows\Forms\Form.cs (7)
1110
Controls
.Add(new MdiClient());
3817
if (
Controls
.Count > 1)
3819
for (int index = 0; index <
Controls
.Count; index++)
3821
Control ctl =
Controls
[index];
4268
foreach (Control c in
Controls
)
4608
foreach (Control c in
Controls
)
5090
foreach (Control control in
Controls
)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (5)
617
foreach (Control c in start.
Controls
)
1034
ControlCollection controlsCollection = start.
Controls
;
1055
ControlCollection controlsCollection = start.
Controls
;
1251
if (
Controls
.Count == 0)
1970
ControlCollection children =
Controls
;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (4)
279
get => base.
Controls
;
1794
if ((Panel1.
Controls
.Count > 0 || Panel2.
Controls
.Count > 0) || TabStop)
2031
foreach (Control child in control.
Controls
)
System\Windows\Forms\Layout\DefaultLayout.cs (1)
698
ControlCollection controls = control.
Controls
;
System\Windows\Forms\MDI\MDIClient.cs (2)
243
for (int i = 0; i <
Controls
.Count; i++)
247
if (
Controls
[i] is Form child && child.CanRecreateHandle() && child.WindowState == FormWindowState.Minimized)
System\Windows\Forms\MDI\MDIWindowDialog.cs (2)
137
Controls
.Add(_okCancelTableLayoutPanel);
138
Controls
.Add(_itemList);
System\Windows\Forms\Panels\Panel.PanelAccessibleObject.cs (3)
24
!this.IsOwnerHandleCreated(out Panel? owner) || index < 0 || index >= owner.
Controls
.Count
26
: owner.
Controls
[index].AccessibilityObject;
31
=> this.IsOwnerHandleCreated(out Panel? owner) ? owner.
Controls
.Count : -1;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
100
public new TableLayoutControlCollection Controls => (TableLayoutControlCollection)base.
Controls
;
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutSettings.TableLayoutSettingsStub.cs (1)
44
foreach (Control tableControl in appliedControl.
Controls
)
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
81
Controls
.Add(_tableLayoutPanel);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
77
Controls
.Add(_hScrollBar);
90
Controls
.Add(_vScrollBar);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (2)
967
Controls
.Add(_previewControl);
968
Controls
.Add(_toolStrip1);
System\Windows\Forms\Scrolling\ScrollableControl.cs (8)
335
if (
Controls
.Count != 0)
347
for (int i = 0; i <
Controls
.Count; i++)
349
Control current =
Controls
[i];
400
else if (
Controls
.Count != 0)
403
for (int i = 0; i <
Controls
.Count; i++)
408
Control current =
Controls
[i];
809
for (int i = 0; i <
Controls
.Count; i++)
811
Control ctl =
Controls
[i];
System.Windows.Forms.Design (223)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (2)
204
_groupBoxMode.
Controls
.Add(_radioButtonsTableLayoutPanel);
285
Controls
.Add(_overarchingTableLayoutPanel);
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (1)
500
Controls
.Add(_overArchingTableLayoutPanel);
System\ComponentModel\Design\CollectionEditor.FilterListBox.cs (1)
25
foreach (Control c in Parent.
Controls
)
System\ComponentModel\Design\DateTimeEditor.DateTimeUI.cs (1)
66
Controls
.Add(_monthCalendar);
System\ComponentModel\Design\DesignerActionPanel.cs (3)
871
oldLine.RemoveControls(
Controls
);
883
Controls
.AddRange(controls);
894
excessLine.RemoveControls(
Controls
);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
34
Controls
.Add(hostedControl);
System\ComponentModel\Design\ToolStripContainerActionList.cs (8)
53
foreach (Control control in panel.
Controls
)
103
&& root.
Controls
.Count > 1;
118
root.
Controls
.Add(_toolStripContainer);
137
|| root.
Controls
.Count <= 1)
152
Control[] childControls = new Control[root.
Controls
.Count];
153
root.
Controls
.CopyTo(childControls, 0);
179
oldParent.
Controls
.Remove(control);
185
newParent.
Controls
.Add(control);
System\Drawing\Design\ColorEditor.ColorUI.ColorEditorTabControl.cs (2)
21
if (selectedTab is not null && selectedTab.
Controls
.Count > 0)
23
selectedTab.
Controls
[0].Focus();
System\Drawing\Design\ColorEditor.ColorUI.cs (6)
223
_paletteTabPage.
Controls
.Add(_pal);
224
_systemTabPage.
Controls
.Add(_lbSystem);
225
_commonTabPage.
Controls
.Add(_lbCommon);
227
Controls
.Add(_tabControl);
325
if (selectedPage is not null && selectedPage.
Controls
.Count > 0)
327
selectedPage.
Controls
[0].Focus();
System\Drawing\Design\ContentAlignmentEditor.ContentUI.cs (8)
106
protected override ControlCollection SelectionOptions =>
Controls
;
209
Controls
.Clear();
250
Controls
.AddRange(
434
nextTabIndex =
Controls
.Count - 1;
436
else if (nextTabIndex >=
Controls
.Count)
441
for (int i = 0; i <
Controls
.Count; i++)
443
if (
Controls
[i] is RadioButton button &&
Controls
[i].TabIndex == nextTabIndex)
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (4)
115
Controls
.Clear();
116
Controls
.AddRange(
121
_container.
Controls
.Clear();
122
_container.
Controls
.AddRange(
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (12)
218
foreach (Control control in c.
Controls
)
256
dragSource.
Controls
.Remove(currentControl);
258
dragTarget.
Controls
.Add(currentControl);
284
dragTarget.
Controls
.SetChildIndex(currentControl, newIndex);
402
numberOfOriginalTrayControls = tray is not null ? tray.
Controls
.Count : 0;
502
componentChangeSvcTarget.OnComponentChanged(dragTarget, targetProp, dragTarget.
Controls
, dragTarget.
Controls
);
505
componentChangeSvcSource.OnComponentChanged(dragSource, sourceProp, dragSource.
Controls
, dragSource.
Controls
);
528
int numberOfTrayControlsAdded = tray.
Controls
.Count - numberOfOriginalTrayControls;
535
listOfTrayControls.Add(tray.
Controls
[numberOfOriginalTrayControls + i]);
972
_dragComponents[i].zorderIndex = primaryParent.
Controls
.GetChildIndex(dragControl, false /*throwException*/);
System\Windows\Forms\Design\Behavior\SelectionManager.cs (1)
116
foreach (Control control in parent.
Controls
)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (2)
169
oldParent.
Controls
.Remove(control);
175
newParent.
Controls
.Add(control);
System\Windows\Forms\Design\BorderSidesEditor.BorderSidesEditorUI.cs (1)
158
Controls
.Add(_tableLayoutPanel);
System\Windows\Forms\Design\ChangeToolStripParentVerb.cs (2)
71
oldParent.
Controls
.Remove(toolStrip);
78
newParent.
Controls
.Add(toolStrip);
System\Windows\Forms\Design\CommandSet.cs (9)
1786
if (controlCommonParent.
Controls
.Count > 0)
1788
Control? parent = controlCommonParent.
Controls
[0];
1855
int numberOfOriginalTrayControls = tray is not null ? tray.
Controls
.Count : 0;
2137
int numberOfTrayControlsAdded = tray.
Controls
.Count - numberOfOriginalTrayControls;
2144
listOfTrayControls.Add(tray.
Controls
[numberOfOriginalTrayControls + i]);
3307
foreach (Control child in parentControl.
Controls
)
3440
foreach (Control c in parentControl.
Controls
)
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 (6)
221
ControlCollection children =
Controls
;
444
get =>
Controls
.Count;
710
Controls
.Add(trayctl);
1022
foreach (Control control in
Controls
)
1377
int controlCount =
Controls
.Count;
1380
Control child =
Controls
[i];
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (7)
83
foreach (Control child in parent.
Controls
)
99
foreach (Control control in parent.
Controls
)
127
foreach (Control control in parent.
Controls
)
299
for (int i = 0; i < parent.
Controls
.Count; i++)
301
if (parent.
Controls
[i] == control)
417
for (int i = control.
Controls
.Count - 1; i >= 0; i--)
421
Control child = control.
Controls
[i];
System\Windows\Forms\Design\ControlCommandSet.cs (10)
1142
if (_baseControl is not null && _baseControl.
Controls
.Count > 0)
1392
if (current.
Controls
.Count > 0)
1394
next = current.
Controls
[0];
1509
Control.ControlCollection ctlControls = ctl.
Controls
;
1541
Control.ControlCollection parentControls = p.
Controls
;
1609
Control.ControlCollection parentControls = p.
Controls
;
1677
Control.ControlCollection ctlControls = ctl.
Controls
;
1696
ctlControls = ctl.
Controls
;
1739
else if (parent.
Controls
.GetChildIndex(cX) > parent.
Controls
.GetChildIndex(cY))
System\Windows\Forms\Design\ControlDesigner.cs (6)
115
foreach (Control control in Control.
Controls
)
862
foreach (Control child in firstChild.
Controls
)
1116
foreach (Control control in Control.
Controls
)
1166
foreach (Control c in parentControl.
Controls
)
1675
foreach (Control child in firstChild.
Controls
)
2495
foreach (Control c in Control.
Controls
)
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollection.cs (1)
20
public DesignerControlCollection(Control owner) : base(owner) => _realCollection = owner.
Controls
;
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
457
Controls
.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (2)
222
_previewGroupBox.
Controls
.Add(_sampleViewTableLayoutPanel);
240
Controls
.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
619
Controls
.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
33
Controls
.Add(_typesListBox);
System\Windows\Forms\Design\DesignBindingPicker.cs (19)
199
_addNewPanel.
Controls
.Add(_addNewCtrl);
200
_addNewPanel.
Controls
.Add(addNewIcon);
201
_addNewPanel.
Controls
.Add(addNewDiv);
203
_helpTextPanel.
Controls
.Add(_helpTextCtrl);
204
_helpTextPanel.
Controls
.Add(helpTextDiv);
208
Controls
.Add(_addNewPanel);
209
Controls
.Add(_helpTextPanel);
306
_addNewPanel.
Controls
.Add(_addNewCtrl);
307
_addNewPanel.
Controls
.Add(addNewIcon);
308
_addNewPanel.
Controls
.Add(addNewDiv);
332
_helpTextPanel.
Controls
.Add(_helpTextCtrl);
333
_helpTextPanel.
Controls
.Add(helpTextDiv);
337
Controls
.Add(_treeViewCtrl);
338
Controls
.Add(_addNewPanel);
339
Controls
.Add(_helpTextPanel);
463
_addNewPanel.
Controls
.Clear();
464
_helpTextPanel.
Controls
.Clear();
465
Controls
.Remove(_addNewPanel);
466
Controls
.Remove(_helpTextPanel);
System\Windows\Forms\Design\DesignerFrame.cs (9)
48
Controls
.Add(_designerRegion);
106
_designerRegion.
Controls
.Add(_designer);
293
Controls
.Add(_splitter);
294
Controls
.Add(window);
304
Controls
.Remove(window);
305
Controls
.Remove(_splitter);
318
List<ThemedScrollbarWindow> windows = new(
Controls
.Count);
319
foreach (Control c in
Controls
)
547
foreach (Control c in Owner!.
Controls
)
System\Windows\Forms\Design\DockEditor.DockUI.cs (5)
169
protected override ControlCollection SelectionOptions => _container.
Controls
;
205
Controls
.Clear();
206
Controls
.Add(_container);
208
_container.
Controls
.Clear();
209
_container.
Controls
.AddRange(
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (6)
78
foreach (object child in Control.
Controls
)
170
var children = Control.
Controls
;
598
var children = Control.
Controls
;
733
Control.
Controls
.SetChildIndex(e.Control, _insertionIndex);
886
_insertionIndex = FlowLayoutPanel.
Controls
.Count;
902
Control.
Controls
.Contains(_primaryDragControl))
System\Windows\Forms\Design\FlowPanelDesigner.cs (1)
37
internal override void AddChildControl(Control newChild) => Control.
Controls
.Add(newChild);
System\Windows\Forms\Design\FormatControl.Designer.cs (3)
60
formatGroupBox.
Controls
.Add(this.tableLayoutPanel3);
92
sampleGroupBox.
Controls
.Add(this.sampleLabel);
175
Controls
.Add(formatGroupBox);
System\Windows\Forms\Design\FormatStringDialog.cs (3)
214
Controls
.Add(_okButton);
215
Controls
.Add(_formatControl1);
216
Controls
.Add(_cancelButton);
System\Windows\Forms\Design\InheritanceUI.cs (2)
68
foreach (Control child in c.
Controls
)
93
foreach (Control child in c.
Controls
)
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (3)
102
Controls
.Add(_okCancelTableLayoutPanel);
103
Controls
.Add(_sampleEdit);
104
Controls
.Add(_caption);
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
282
Controls
.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Design\MaskedTextBoxTextEditorDropDown.cs (1)
48
Controls
.Add(_cloneMtb);
System\Windows\Forms\Design\OleDragDropHandler.cs (2)
312
DisableDragDropChildren(c.
Controls
, allowDropCache);
516
DisableDragDropChildren(ctl.
Controls
, allowDropChanged);
System\Windows\Forms\Design\ParentControlDesigner.cs (29)
192
foreach (Control child in Control.
Controls
)
270
foreach (Control child in Control.
Controls
)
408
foreach (Control child in Control.
Controls
)
428
Control.
Controls
.Add(newChild);
429
Control.
Controls
.SetChildIndex(newChild, 0);
588
_changeService?.OnComponentChanged(Control, controlsProp, Control.
Controls
, Control.
Controls
);
608
Control[] children = new Control[parent.
Controls
.Count];
609
parent.
Controls
.CopyTo(children, 0);
652
parent.
Controls
.Add(children[i]);
656
int childIndex = parent.
Controls
.GetChildIndex(children[i]);
657
parent.
Controls
.Remove(children[i]);
658
parent.
Controls
.Add(children[i]);
659
parent.
Controls
.SetChildIndex(children[i], childIndex);
869
int controlCount = control.
Controls
.Count;
873
Control child = control.
Controls
[i];
2176
oldParent.
Controls
.Remove(control);
2180
newParent.
Controls
.Add(control);
2189
if (oldParent.
Controls
.Contains(newParent))
2412
cParent.
Controls
.Remove(c);
2413
_changeService?.OnComponentChanged(cParent, controlsProp, cParent.
Controls
, cParent.
Controls
);
2421
parent.
Controls
.Add(c);
2425
_changeService?.OnComponentChanged(parent, controlsProp, parent.
Controls
, parent.
Controls
);
2430
int childIndex = parent.
Controls
.GetChildIndex(c);
2431
parent.
Controls
.Remove(c);
2432
parent.
Controls
.Add(c);
2433
parent.
Controls
.SetChildIndex(c, childIndex);
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
216
Controls
.AddRange([_innerPanel, _outerPanel]);
System\Windows\Forms\Design\SplitContainerDesigner.cs (1)
148
components.AddRange(panel.
Controls
.Cast<Control>());
System\Windows\Forms\Design\SplitterPanelDesigner.cs (2)
132
if (_splitterPanel.
Controls
.Count == 0)
211
if (_splitterPanel.
Controls
.Count == 0)
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
123
Controls
.Add(_overarchingLayoutPanel);
System\Windows\Forms\Design\StyleEditorForm.cs (2)
373
_sizeTypeGroupBox.
Controls
.Add(_sizeTypeTableLayoutPanel);
442
Controls
.Add(_overarchingTableLayoutPanel);
System\Windows\Forms\Design\TabControlDesigner.cs (3)
75
_removeVerb.Enabled = Control.
Controls
.Count > 0;
118
_removeVerb.Enabled = Control.
Controls
.Count > 0;
294
tc.
Controls
.Add(page);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (2)
1181
for (int i = 0; i < Control.
Controls
.Count; i++)
1183
TypeDescriptor.AddAttributes(Control.
Controls
[i], InheritanceAttribute.InheritedReadOnly);
System\Windows\Forms\Design\TabOrder.cs (5)
361
for (int n = 0; n < ctl.
Controls
.Count; n++)
363
if (GetTabbable(ctl.
Controls
[n]))
420
int count = control.
Controls
.Count;
423
ctlTab = control.
Controls
[i];
430
if (ctlTab.
Controls
.Count > 0)
System\Windows\Forms\Design\ToolStripContainerDesigner.cs (1)
153
foreach (Control control in parent.
Controls
)
System\Windows\Forms\Design\ToolStripDesigner.cs (10)
1519
ComponentChangeService.OnComponentChanged(parentPanel, controlsProp, parentPanel.
Controls
, parentPanel.
Controls
);
1535
foreach (Control c in parent.
Controls
)
1539
index = parent.
Controls
.IndexOf(c);
1546
index = parent.
Controls
.Count - 1;
1549
parent.
Controls
.SetChildIndex(ToolStrip, index);
1556
foreach (Control c in parent.
Controls
)
1568
index = parent.
Controls
.IndexOf(c);
1576
index = parent.
Controls
.Count;
1579
parent.
Controls
.SetChildIndex(ToolStrip, index - 1);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
274
form.
Controls
.Remove(_designMenu);
398
form.
Controls
.Add(_designMenu);
System\Windows\Forms\Design\ToolStripEditorManager.cs (3)
57
_behaviorService.AdornerWindowControl.
Controls
.Remove(_editor);
87
_behaviorService.AdornerWindowControl.
Controls
.Add(_editor);
130
Controls
.Add(editorToolStrip);
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (5)
333
Control.ControlCollection parentControls = p.
Controls
;
388
Control.ControlCollection parentControls = p.
Controls
;
793
selSvc.SetSelectedComponents(parentToolStripPanel.
Controls
, SelectionTypes.Replace);
1703
next = current.
Controls
.Count > 0 ? current.
Controls
[0] : (object)current;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
391
if (Control.
Controls
.Count == 0)
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
335
Controls
.Add(_overarchingTableLayoutPanel);
System.Windows.Forms.Design.Tests (17)
ControlDesignerTests.cs (2)
205
_designer._control.
Controls
.Add(childControl);
220
_designer._control.
Controls
.Add(childControl);
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (1)
614
form.
Controls
.Add(mediaPlayer);
System\Windows\Forms\Design\ControlDesigner.DesignerControlCollectionTests.cs (14)
56
_collection.IsReadOnly.Should().Be(_control.
Controls
.IsReadOnly);
64
_control.
Controls
.Cast<Control>().Should().Contain(control);
74
_control.
Controls
.Cast<Control>().Should().Contain(controls);
88
var other = _control.
Controls
;
95
_collection.GetEnumerator().Should().BeEquivalentTo(_control.
Controls
.GetEnumerator());
101
_collection.GetHashCode().Should().Be(_control.
Controls
.GetHashCode());
109
((IList)_collection).IndexOf(control).Should().Be(_control.
Controls
.IndexOf(control));
120
_control.
Controls
[0].Should().Be(control);
129
_control.
Controls
.Contains(control).Should().BeFalse();
138
_control.
Controls
.Contains(control).Should().BeFalse();
146
_collection.GetChildIndex(control, throwException: false).Should().Be(_control.
Controls
.GetChildIndex(control, throwException: false));
155
_control.
Controls
.GetChildIndex(control).Should().Be(0);
164
_control.
Controls
.Contains(control).Should().BeTrue();
167
_control.
Controls
.Contains(control).Should().BeFalse();
System.Windows.Forms.Tests (820)
NumericUpDownTests.cs (5)
31
form.
Controls
.Add(upDown);
51
upDown.
Controls
[0].PrintToMetafile(emfButtons);
74
form.
Controls
.Add(upDown);
110
form.
Controls
.Add(upDown);
193
upDown.
Controls
[0].PrintToMetafile(emfButtons);
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (5)
546
form.
Controls
.Add(first);
547
form.
Controls
.Add(second);
573
form.
Controls
.Add(control);
2623
form.
Controls
.Add(button);
2654
form.
Controls
.Add(comboBox);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
887
ownerControl.
Controls
.Add(child);
1192
ownerControl.
Controls
.Add(child);
1679
form.
Controls
.Add(label);
1680
form.
Controls
.Add(control);
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (3)
364
form.
Controls
.Add(dateTimePicker2);
365
form.
Controls
.Add(label1);
366
form.
Controls
.Add(dateTimePicker1);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (1)
45
parentControl.
Controls
.Add(control);
System\Windows\Forms\AccessibleObjects\ErrorProviderAccessibleObjectTests.cs (2)
35
_form.
Controls
.Add(_control1);
36
_form.
Controls
.Add(_control2);
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (3)
128
form.
Controls
.Add(control);
148
form.
Controls
.Add(control);
193
form.
Controls
.Add(embeddedForm);
System\Windows\Forms\AccessibleObjects\ListBoxAccessibleObjectTests.cs (1)
138
form.
Controls
.Add(listBox);
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
287
form.
Controls
.Add(list);
321
form.
Controls
.Add(listView);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (2)
193
form.
Controls
.Add(listView1);
217
form.
Controls
.Add(listView1);
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (6)
193
parentPanel.
Controls
.Add(childPanel);
231
parentPanel.
Controls
.Add(childPanel);
247
panel.
Controls
.Add(buttonFirst);
250
panel.
Controls
.Add(buttonLast);
264
panel1.
Controls
.Add(button1);
272
form.
Controls
.Add(panel1);
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (1)
84
panel.
Controls
.Add(control);
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (3)
531
tabControl.
Controls
.Add(tabPage);
539
tabPage.
Controls
.Add(button);
544
form.
Controls
.Add(tabControl);
System\Windows\Forms\Application.ParkingWindowTests.cs (1)
45
form.
Controls
.Add(comboBox);
System\Windows\Forms\AxHost.VisualBasic6Tests.cs (1)
24
form.
Controls
.Add(control);
System\Windows\Forms\AxHostTests.cs (10)
55
Assert.Empty(control.
Controls
);
56
Assert.Same(control.
Controls
, control.
Controls
);
149
Assert.Empty(control.
Controls
);
150
Assert.Same(control.
Controls
, control.
Controls
);
469
control.
Controls
.Add(child1);
470
control.
Controls
.Add(child2);
499
control.
Controls
.Add(child1);
500
control.
Controls
.Add(child2);
System\Windows\Forms\AxSystemMonitorTests.cs (1)
19
_form.
Controls
.Add(_control);
System\Windows\Forms\AxWebBrowserTests.cs (1)
21
_form.
Controls
.Add(_control);
System\Windows\Forms\ButtonBaseTests.cs (31)
46
Assert.Empty(control.
Controls
);
47
Assert.Same(control.
Controls
, control.
Controls
);
2876
Assert.Empty(oldParent.
Controls
);
2882
Assert.Empty(oldParent.
Controls
);
2895
Assert.Same(control, Assert.Single(parent.
Controls
));
2901
Assert.Same(control, Assert.Single(parent.
Controls
));
4562
Assert.Empty(control.
Controls
);
4577
Assert.Empty(control.
Controls
);
4588
Assert.Empty(control.
Controls
);
4614
Assert.Empty(control.
Controls
);
4629
Assert.Empty(control.
Controls
);
4640
Assert.Empty(control.
Controls
);
4669
Assert.Empty(control.
Controls
);
4684
Assert.Empty(control.
Controls
);
4695
Assert.Empty(control.
Controls
);
4717
Assert.Empty(control.
Controls
);
4732
Assert.Empty(control.
Controls
);
4743
Assert.Empty(control.
Controls
);
4769
Assert.Empty(control.
Controls
);
4784
Assert.Empty(control.
Controls
);
4795
Assert.Empty(control.
Controls
);
4824
Assert.Empty(control.
Controls
);
4839
Assert.Empty(control.
Controls
);
4850
Assert.Empty(control.
Controls
);
4876
Assert.Empty(control.
Controls
);
4887
Assert.Empty(control.
Controls
);
4917
Assert.Empty(control.
Controls
);
4928
Assert.Empty(control.
Controls
);
4961
Assert.Empty(control.
Controls
);
4972
Assert.Empty(control.
Controls
);
System\Windows\Forms\ButtonRenderingTests.cs (1)
216
form.
Controls
.Add(button);
System\Windows\Forms\ButtonTests.cs (3)
48
Assert.Empty(control.
Controls
);
49
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\CheckBoxRendererTests.cs (4)
20
form.
Controls
.Add(control);
56
form.
Controls
.Add(control);
93
form.
Controls
.Add(control);
129
form.
Controls
.Add(control);
System\Windows\Forms\CheckBoxTests.cs (5)
50
Assert.Empty(control.
Controls
);
51
Assert.Same(control.
Controls
, control.
Controls
);
818
form.
Controls
.Add(control);
851
form.
Controls
.Add(checkBox);
System\Windows\Forms\ComboBoxTests.cs (3)
51
Assert.Empty(control.
Controls
);
52
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\ContainerControlTests.cs (38)
53
Assert.Empty(control.
Controls
);
54
Assert.Same(control.
Controls
, control.
Controls
);
152
control.
Controls
.Add(child);
153
child.
Controls
.Add(grandchild);
202
control.
Controls
.Add(child);
567
control.
Controls
.Add(child);
614
control.
Controls
.Add(child);
796
child1.
Controls
.Add(grandchild1);
799
child2.
Controls
.Add(grandchild2);
802
child3.
Controls
.Add(grandchild3);
821
control.
Controls
.Add(child1);
822
control.
Controls
.Add(child2);
823
control.
Controls
.Add(child3);
824
control.
Controls
.Add(child4);
825
control.
Controls
.Add(child5);
826
control.
Controls
.Add(child6);
827
control.
Controls
.Add(child7);
828
control.
Controls
.Add(child8);
1022
child1.
Controls
.Add(grandchild1);
1025
child2.
Controls
.Add(grandchild2);
1028
child3.
Controls
.Add(grandchild3);
1047
control.
Controls
.Add(child1);
1048
control.
Controls
.Add(child2);
1049
control.
Controls
.Add(child3);
1050
control.
Controls
.Add(child4);
1051
control.
Controls
.Add(child5);
1052
control.
Controls
.Add(child6);
1053
control.
Controls
.Add(child7);
1054
control.
Controls
.Add(child8);
1257
control.
Controls
.Add(child1);
1258
control.
Controls
.Add(child2);
1287
control.
Controls
.Add(child1);
1288
control.
Controls
.Add(child2);
1317
container.
Controls
.Add(control);
1342
container.
Controls
.Add(control);
1367
container.
Controls
.Add(control);
1383
container.
Controls
.Add(control);
System\Windows\Forms\ControlTests.ControlCollection.cs (33)
59
Assert.Empty(owner.
Controls
);
72
Assert.Empty(owner.
Controls
);
87
Assert.Empty(owner.
Controls
);
111
Control.ControlCollection collection = owner.
Controls
;
135
Assert.Same(control1, Assert.Single(owner.
Controls
));
148
Assert.Equal(new Control[] { control1, control2 }, owner.
Controls
.Cast<Control>());
164
Assert.Equal(new Control[] { control2, control1 }, owner.
Controls
.Cast<Control>());
188
Control.ControlCollection collection1 = owner1.
Controls
;
189
Control.ControlCollection collection2 = owner2.
Controls
;
210
Assert.Same(control, Assert.Single(owner2.
Controls
));
225
Control.ControlCollection collection = owner.
Controls
;
252
Assert.Same(control, Assert.Single(owner.
Controls
));
264
Assert.Same(control, Assert.Single(owner.
Controls
));
280
Control.ControlCollection collection = owner.
Controls
;
334
Control.ControlCollection collection = owner.
Controls
;
363
Control.ControlCollection collection = owner.
Controls
;
431
Control.ControlCollection collection = owner.
Controls
;
468
Control.ControlCollection collection = owner.
Controls
;
1209
Control.ControlCollection collection = owner.
Controls
;
1460
child3.
Controls
.Add(grandchild1);
1461
child3.
Controls
.Add(grandchild2);
1462
child3.
Controls
.Add(grandchild3);
1463
Control.ControlCollection collection = owner.
Controls
;
1501
Control.ControlCollection collection = owner.
Controls
;
2045
Control.ControlCollection collection = owner.
Controls
;
2121
Control.ControlCollection collection = owner.
Controls
;
3162
Control.ControlCollection collection = owner.
Controls
;
3241
Control.ControlCollection collection = owner.
Controls
;
3335
Control.ControlCollection collection = owner.
Controls
;
3434
IList collection = owner.
Controls
;
3458
Assert.Same(control1, Assert.Single(owner.
Controls
));
3472
Assert.Equal(new Control[] { control1, control2 }, owner.
Controls
.Cast<Control>());
3488
Assert.Equal(new Control[] { control2, control1 }, owner.
Controls
.Cast<Control>());
System\Windows\Forms\ControlTests.cs (34)
41
Assert.Empty(control.
Controls
);
42
Assert.Same(control.
Controls
, control.
Controls
);
130
Assert.Empty(control.
Controls
);
131
Assert.Same(control.
Controls
, control.
Controls
);
226
Assert.Empty(control.
Controls
);
227
Assert.Same(control.
Controls
, control.
Controls
);
322
Assert.Empty(control.
Controls
);
323
Assert.Same(control.
Controls
, control.
Controls
);
418
Assert.Empty(control.
Controls
);
419
Assert.Same(control.
Controls
, control.
Controls
);
726
control.
Controls
.Add(childControl);
787
control.
Controls
.AddRange(new Button[] { button1, button2, button3 });
806
control.
Controls
.AddRange(new Button[] { button1, button2, button3 });
825
control.
Controls
.AddRange(new Button[] { button1, button2, button3 });
846
control.
Controls
.AddRange(new Button[] { button1, button2, button3 });
868
control.
Controls
.Add(table);
877
panelRadioButtons.
Controls
.Add(radioButton1);
879
panelRadioButtons.
Controls
.Add(radioButton2);
888
panelCheckBoxes.
Controls
.Add(checkBox1);
890
panelCheckBoxes.
Controls
.Add(checkBox2);
899
panelButtons.
Controls
.Add(button1);
901
panelButtons.
Controls
.Add(button2);
954
form.
Controls
.AddRange(new ToolStrip[] { toolStrip1, toolStrip2 });
1011
form.
Controls
.AddRange(new ToolStrip[] { toolStrip1, toolStrip2 });
1059
form.
Controls
.Add(checkedListBox1);
1060
form.
Controls
.Add(button1);
1061
form.
Controls
.Add(listBox1);
1062
form.
Controls
.Add(listView1);
1099
form.
Controls
.Add(control);
System\Windows\Forms\ControlTests.Handlers.cs (50)
134
control.
Controls
.Add(child1);
135
control.
Controls
.Add(child2);
187
control.
Controls
.Add(child1);
188
control.
Controls
.Add(child2);
329
control.
Controls
.Add(child1);
330
control.
Controls
.Add(child2);
386
control.
Controls
.Add(child1);
387
control.
Controls
.Add(child2);
510
control.
Controls
.Add(child1);
511
control.
Controls
.Add(child2);
563
control.
Controls
.Add(child1);
564
control.
Controls
.Add(child2);
658
control.
Controls
.Add(child1);
659
control.
Controls
.Add(child2);
713
control.
Controls
.Add(child1);
714
control.
Controls
.Add(child2);
1108
control.
Controls
.Add(child1);
1109
control.
Controls
.Add(child2);
1163
control.
Controls
.Add(child1);
1164
control.
Controls
.Add(child2);
1505
control.
Controls
.Add(child1);
1506
control.
Controls
.Add(child2);
1558
control.
Controls
.Add(child1);
1559
control.
Controls
.Add(child2);
1740
control.
Controls
.Add(child1);
1741
control.
Controls
.Add(child2);
1795
control.
Controls
.Add(child1);
1796
control.
Controls
.Add(child2);
1961
control.
Controls
.Add(child1);
1962
control.
Controls
.Add(child2);
2014
control.
Controls
.Add(child1);
2015
control.
Controls
.Add(child2);
2804
control.
Controls
.Add(child1);
2805
control.
Controls
.Add(child2);
2904
control.
Controls
.Add(child1);
2905
control.
Controls
.Add(child2);
2981
control.
Controls
.Add(child1);
2982
control.
Controls
.Add(child2);
5035
control.
Controls
.Add(child1);
5036
control.
Controls
.Add(child2);
5088
control.
Controls
.Add(child1);
5089
control.
Controls
.Add(child2);
5363
control.
Controls
.Add(child1);
5364
control.
Controls
.Add(child2);
5726
child1.
Controls
.Add(grandchild1);
5727
control.
Controls
.Add(child1);
5728
control.
Controls
.Add(child2);
5808
child1.
Controls
.Add(grandchild1);
5809
control.
Controls
.Add(child1);
5810
control.
Controls
.Add(child2);
System\Windows\Forms\ControlTests.Internals.cs (6)
310
control.
Controls
.AddRange(unordered);
339
control.
Controls
.AddRange(unordered);
368
control.
Controls
.AddRange(tabOrder);
396
control.
Controls
.AddRange(tabOrder);
416
form.
Controls
.Add(control);
418
form.
Controls
.Remove(control);
System\Windows\Forms\ControlTests.Methods.cs (106)
138
parent.
Controls
.Add(child1);
139
parent.
Controls
.Add(child2);
140
Assert.Equal(new Control[] { child1, child2 }, parent.
Controls
.Cast<Control>());
155
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
164
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
180
parent.
Controls
.Add(child1);
181
parent.
Controls
.Add(child2);
182
Assert.Equal(new Control[] { child1, child2 }, parent.
Controls
.Cast<Control>());
204
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
216
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
235
parent.
Controls
.Add(child1);
236
parent.
Controls
.Add(child2);
237
Assert.Equal(new Control[] { child1, child2 }, parent.
Controls
.Cast<Control>());
265
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
280
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
302
parent.
Controls
.Add(child1);
303
parent.
Controls
.Add(child2);
304
Assert.Equal(new Control[] { child1, child2 }, parent.
Controls
.Cast<Control>());
327
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
339
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
979
Assert.Empty(control.
Controls
);
993
Assert.Empty(control.
Controls
);
1003
Assert.Empty(control.
Controls
);
1030
Assert.Empty(control.
Controls
);
1044
Assert.Empty(control.
Controls
);
1055
Assert.Empty(control.
Controls
);
1075
control.
Controls
.Add(child1);
1076
control.
Controls
.Add(child2);
1084
Assert.Empty(control.
Controls
);
1102
Assert.Empty(control.
Controls
);
1123
Assert.Empty(control.
Controls
);
1157
Assert.Empty(control.
Controls
);
1171
Assert.Empty(control.
Controls
);
1181
Assert.Empty(control.
Controls
);
1212
Assert.Empty(control.
Controls
);
1226
Assert.Empty(control.
Controls
);
1240
Assert.Empty(control.
Controls
);
1281
Assert.Empty(control.
Controls
);
1295
Assert.Empty(control.
Controls
);
1305
Assert.Empty(control.
Controls
);
1330
Assert.Empty(control.
Controls
);
1340
Assert.Empty(control.
Controls
);
1367
Assert.Empty(control.
Controls
);
1381
Assert.Empty(control.
Controls
);
1392
Assert.Empty(control.
Controls
);
1424
Assert.Empty(control.
Controls
);
1435
Assert.Empty(control.
Controls
);
1455
control.
Controls
.Add(child1);
1456
control.
Controls
.Add(child2);
1464
Assert.Empty(control.
Controls
);
1482
Assert.Empty(control.
Controls
);
1503
Assert.Empty(control.
Controls
);
1533
control.
Controls
.Add(child1);
1534
control.
Controls
.Add(child2);
1550
Assert.Equal(new Control[] { child1, child2 }, control.
Controls
.Cast<Control>());
1571
Assert.Equal(new Control[] { child1, child2 }, control.
Controls
.Cast<Control>());
1605
Assert.Empty(control.
Controls
);
1619
Assert.Empty(control.
Controls
);
1629
Assert.Empty(control.
Controls
);
1657
Assert.Empty(control.
Controls
);
1667
Assert.Empty(control.
Controls
);
1698
Assert.Empty(control.
Controls
);
1712
Assert.Empty(control.
Controls
);
1726
Assert.Empty(control.
Controls
);
1765
Assert.Empty(control.
Controls
);
1779
Assert.Empty(control.
Controls
);
2266
cont.
Controls
.AddRange(tabOrder);
2294
cont.
Controls
.AddRange(tabOrder);
2322
cont.
Controls
.AddRange(tabOrder);
2350
cont.
Controls
.AddRange(tabOrder);
3077
control.
Controls
.Add(child);
3195
control.
Controls
.Add(child);
3330
control.
Controls
.Add(child);
3471
control.
Controls
.Add(child);
3608
control.
Controls
.Add(child);
3751
control.
Controls
.Add(child);
4604
control.
Controls
.Add(child1);
4605
control.
Controls
.Add(child2);
4704
control.
Controls
.Add(child1);
4705
control.
Controls
.Add(child2);
6756
control.
Controls
.Add(child);
6804
control.
Controls
.Add(child);
7033
parent.
Controls
.Add(child1);
7034
parent.
Controls
.Add(child2);
7035
Assert.Equal(new Control[] { child1, child2 }, parent.
Controls
.Cast<Control>());
7050
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
7059
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
7075
parent.
Controls
.Add(child1);
7076
parent.
Controls
.Add(child2);
7077
Assert.Equal(new Control[] { child1, child2 }, parent.
Controls
.Cast<Control>());
7099
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
7111
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
7130
parent.
Controls
.Add(child1);
7131
parent.
Controls
.Add(child2);
7132
Assert.Equal(new Control[] { child1, child2 }, parent.
Controls
.Cast<Control>());
7160
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
7175
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
7197
parent.
Controls
.Add(child1);
7198
parent.
Controls
.Add(child2);
7199
Assert.Equal(new Control[] { child1, child2 }, parent.
Controls
.Cast<Control>());
7222
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
7234
Assert.Equal(new Control[] { child2, child1 }, parent.
Controls
.Cast<Control>());
12321
parent.
Controls
.Add(child1);
12322
parent.
Controls
.Add(child2);
12368
parent.
Controls
.Add(child1);
12369
parent.
Controls
.Add(child2);
System\Windows\Forms\ControlTests.Properties.cs (78)
1292
control.
Controls
.Add(child1);
1293
control.
Controls
.Add(child2);
1322
control.
Controls
.Add(child1);
1323
control.
Controls
.Add(child2);
1440
control.
Controls
.Add(child1);
1441
control.
Controls
.Add(child2);
1526
control.
Controls
.Add(child1);
1527
control.
Controls
.Add(child2);
1692
control.
Controls
.Add(child1);
1693
control.
Controls
.Add(child2);
1722
control.
Controls
.Add(child1);
1723
control.
Controls
.Add(child2);
1811
control.
Controls
.Add(child1);
1812
control.
Controls
.Add(child2);
1904
control.
Controls
.Add(child1);
1905
control.
Controls
.Add(child2);
2258
control.
Controls
.Add(child1);
2259
control.
Controls
.Add(child2);
2351
control.
Controls
.Add(child1);
2352
control.
Controls
.Add(child2);
3658
Assert.Same(result, control.
Controls
);
3659
Assert.Same(control.
Controls
, control.
Controls
);
3673
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.
Controls
)];
3677
Assert.Empty(control.
Controls
);
3681
control.
Controls
.Add(child);
3682
Assert.Same(child, Assert.Single(control.
Controls
));
3686
Assert.Same(child, Assert.Single(control.
Controls
));
3693
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(Control))[nameof(Control.
Controls
)];
3697
Assert.Empty(control.
Controls
);
3701
control.
Controls
.Add(child);
3702
Assert.Same(child, Assert.Single(control.
Controls
));
3706
Assert.Same(child, Assert.Single(control.
Controls
));
3857
control.
Controls
.Add(child1);
3858
control.
Controls
.Add(child2);
3887
control.
Controls
.Add(child1);
3888
control.
Controls
.Add(child2);
3950
control.
Controls
.Add(child1);
3951
control.
Controls
.Add(child2);
4043
control.
Controls
.Add(child1);
4044
control.
Controls
.Add(child2);
4611
control.
Controls
.Add(child1);
4612
control.
Controls
.Add(child2);
4694
control.
Controls
.Add(child1);
4695
control.
Controls
.Add(child2);
5067
control.
Controls
.Add(child1);
5068
control.
Controls
.Add(child2);
5160
control.
Controls
.Add(child1);
5161
control.
Controls
.Add(child2);
5332
control.
Controls
.Add(child1);
5333
control.
Controls
.Add(child2);
5362
control.
Controls
.Add(child1);
5363
control.
Controls
.Add(child2);
5481
control.
Controls
.Add(child1);
5482
control.
Controls
.Add(child2);
5567
control.
Controls
.Add(child1);
5568
control.
Controls
.Add(child2);
9710
Assert.Empty(oldParent.
Controls
);
9716
Assert.Empty(oldParent.
Controls
);
9729
Assert.Same(control, Assert.Single(parent.
Controls
));
9735
Assert.Same(control, Assert.Single(parent.
Controls
));
9817
control.
Controls
.Add(child);
9842
control.
Controls
.Add(child);
9860
control.
Controls
.Add(child);
10096
control.
Controls
.Add(child1);
10097
control.
Controls
.Add(child2);
10126
control.
Controls
.Add(child1);
10127
control.
Controls
.Add(child2);
10277
control.
Controls
.Add(child1);
10278
control.
Controls
.Add(child2);
10363
control.
Controls
.Add(child1);
10364
control.
Controls
.Add(child2);
12628
control.
Controls
.Add(child1);
12629
control.
Controls
.Add(child2);
12913
control.
Controls
.Add(child1);
12914
control.
Controls
.Add(child2);
12996
control.
Controls
.Add(child1);
12997
control.
Controls
.Add(child2);
System\Windows\Forms\DataGridViewCellTests.cs (7)
201
form.
Controls
.Add(control);
844
form.
Controls
.Add(control);
880
form.
Controls
.Add(control);
4048
form.
Controls
.Add(control);
4091
form.
Controls
.Add(control);
4355
form.
Controls
.Add(control);
5147
form.
Controls
.Add(control);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (2)
2414
form.
Controls
.Add(control);
3681
form.
Controls
.Add(control);
System\Windows\Forms\DataGridViewRowTests.cs (8)
109
form.
Controls
.Add(control);
327
form.
Controls
.Add(control);
354
form.
Controls
.Add(control);
942
form.
Controls
.Add(control);
1872
form.
Controls
.Add(control);
2341
form.
Controls
.Add(control);
4333
form.
Controls
.Add(control);
4458
form.
Controls
.Add(control);
System\Windows\Forms\DataGridViewTests.cs (5)
850
Assert.Empty(oldParent.
Controls
);
856
Assert.Empty(oldParent.
Controls
);
869
Assert.Same(control, Assert.Single(parent.
Controls
));
875
Assert.Same(control, Assert.Single(parent.
Controls
));
2361
form.
Controls
.Add(dataGridView);
System\Windows\Forms\DataGridViewTests.Rendering.cs (2)
28
form.
Controls
.Add(dataGrid);
158
form.
Controls
.Add(dataGridView);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (3)
52
Assert.Empty(control.
Controls
);
53
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\DateTimePickerTests.cs (3)
55
Assert.Empty(control.
Controls
);
56
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (3)
62
Assert.NotEmpty(control.
Controls
);
63
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (7)
50
Assert.Empty(control.
Controls
);
51
Assert.Same(control.
Controls
, control.
Controls
);
817
Assert.Same(control, Assert.Single(result.
Controls
));
825
Assert.Same(control, Assert.Single(result.
Controls
));
833
Assert.Same(control, Assert.Single(result.
Controls
));
841
Assert.Same(control, Assert.Single(result.
Controls
));
System\Windows\Forms\DomainUpDownTests.cs (3)
73
_sub.
Controls
.Should().NotBeNull();
74
_sub.
Controls
.Should().BeSameAs(_sub.
Controls
);
System\Windows\Forms\FlowLayoutPanelTests.cs (3)
48
Assert.Empty(control.
Controls
);
49
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\FormTests.cs (9)
61
Assert.Empty(control.
Controls
);
62
Assert.Same(control.
Controls
, control.
Controls
);
963
Assert.Empty(oldParent.
Controls
);
970
Assert.Empty(oldParent.
Controls
);
1106
Assert.Same(control, Assert.Single(parent.
Controls
));
1112
Assert.Same(control, Assert.Single(parent.
Controls
));
1231
parent.
Controls
.Add(menuStrip);
2602
parent.
Controls
.Add(control);
System\Windows\Forms\GroupBoxTests.cs (4)
44
Assert.Empty(control.
Controls
);
45
Assert.Same(control.
Controls
, control.
Controls
);
929
control.
Controls
.Add(child);
System\Windows\Forms\HScrollBarTests.cs (3)
48
Assert.Empty(control.
Controls
);
49
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\LabelTests.cs (4)
44
Assert.Empty(control.
Controls
);
45
Assert.Same(control.
Controls
, control.
Controls
);
296
form.
Controls
.Add(label);
System\Windows\Forms\Layout\FlowLayoutTests.cs (28)
74
control.
Controls
.Add(child1);
75
control.
Controls
.Add(child2);
76
control.
Controls
.Add(largeChild);
77
control.
Controls
.Add(emptyChild);
78
control.
Controls
.Add(emptyChildWithMargin);
79
control.
Controls
.Add(child3);
80
control.
Controls
.Add(child4);
135
control.
Controls
.Add(child1);
136
control.
Controls
.Add(child2);
137
control.
Controls
.Add(largeChild);
138
control.
Controls
.Add(emptyChild);
139
control.
Controls
.Add(emptyChildWithMargin);
140
control.
Controls
.Add(child3);
141
control.
Controls
.Add(child4);
196
control.
Controls
.Add(child1);
197
control.
Controls
.Add(child2);
198
control.
Controls
.Add(largeChild);
199
control.
Controls
.Add(emptyChild);
200
control.
Controls
.Add(emptyChildWithMargin);
201
control.
Controls
.Add(child3);
202
control.
Controls
.Add(child4);
257
control.
Controls
.Add(child1);
258
control.
Controls
.Add(child2);
259
control.
Controls
.Add(largeChild);
260
control.
Controls
.Add(emptyChild);
261
control.
Controls
.Add(emptyChildWithMargin);
262
control.
Controls
.Add(child3);
263
control.
Controls
.Add(child4);
System\Windows\Forms\ListBoxTests.cs (3)
46
Assert.Empty(control.
Controls
);
47
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\ListControlTests.cs (3)
45
Assert.Empty(control.
Controls
);
46
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\ListViewTests.cs (3)
59
Assert.Empty(control.
Controls
);
60
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\MdiClientTests.cs (4)
41
Assert.Same(control, Assert.IsType<MdiClient.ControlCollection>(control.
Controls
).Owner);
42
Assert.Empty(control.
Controls
);
43
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\MdiControlStripTests.cs (3)
208
mdiParent.
Controls
.Add(menuStrip);
254
mdiParent.
Controls
.Add(menuStrip);
319
mdiParent.
Controls
.Add(menuStrip);
System\Windows\Forms\MixedDpiHostingTests.cs (1)
28
form.
Controls
.Add(control);
System\Windows\Forms\MonthCalendarTests.cs (3)
57
Assert.Empty(control.
Controls
);
58
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\PanelTests.cs (5)
48
Assert.Empty(control.
Controls
);
49
Assert.Same(control.
Controls
, control.
Controls
);
616
control.
Controls
.Add(child);
631
control.
Controls
.Add(child);
System\Windows\Forms\PictureBoxTests.cs (7)
47
Assert.Empty(control.
Controls
);
48
Assert.Same(control.
Controls
, control.
Controls
);
1148
Assert.Empty(oldParent.
Controls
);
1153
Assert.Empty(oldParent.
Controls
);
1165
Assert.Same(control, Assert.Single(parent.
Controls
));
1170
Assert.Same(control, Assert.Single(parent.
Controls
));
System\Windows\Forms\ProgressBarTests.cs (3)
43
Assert.Empty(control.
Controls
);
44
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\RadioButtonRendererTests.cs (4)
19
form.
Controls
.Add(control);
50
form.
Controls
.Add(control);
87
form.
Controls
.Add(control);
108
form.
Controls
.Add(control);
System\Windows\Forms\RadioButtonTests.cs (3)
49
Assert.Empty(control.
Controls
);
50
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\RichTextBoxTests.cs (3)
58
Assert.Empty(control.
Controls
);
59
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\ScrollableControlTests.cs (10)
47
Assert.Empty(control.
Controls
);
48
Assert.Same(control.
Controls
, control.
Controls
);
233
control.
Controls
.Add(child);
2340
control.
Controls
.Add(child);
2412
control.
Controls
.Add(child);
2511
parentControl.
Controls
.Add(childControl);
2520
parentControl.
Controls
.Add(childControl);
2539
control.
Controls
.Add(activeControl.Parent ?? activeControl);
2545
control.
Controls
.Clear();
System\Windows\Forms\ScrollBarTests.cs (3)
42
Assert.Empty(control.
Controls
);
43
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\SplitterPanelTests.cs (3)
52
Assert.Empty(control.
Controls
);
53
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\SplitterTests.cs (3)
43
Assert.Empty(control.
Controls
);
44
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\StatusStripTests.Rendering.cs (1)
22
form.
Controls
.Add(statusStrip);
System\Windows\Forms\TabControl.ControlCollectionTests.cs (17)
47
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
170
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
330
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
471
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
665
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
699
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
722
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
733
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
764
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
832
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
1121
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
1233
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
1357
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
1394
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
1428
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
1473
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
1531
TabControl.ControlCollection collection = Assert.IsType<TabControl.ControlCollection>(owner.
Controls
);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (64)
55
Assert.Same(value1, Assert.Single(owner.
Controls
));
74
Assert.Equal(new Control[] { value1, value2 }, owner.
Controls
.Cast<Control>());
103
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
188
Assert.Same(value1, Assert.Single(owner.
Controls
));
216
Assert.Equal(new Control[] { value1, value2 }, owner.
Controls
.Cast<Control>());
258
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
358
Assert.Same(value1, Assert.Single(owner.
Controls
));
380
Assert.Equal(new Control[] { value1, value2 }, owner.
Controls
.Cast<Control>());
415
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
509
Assert.Same(value1, Assert.Single(owner.
Controls
));
540
Assert.Equal(new Control[] { value1, value2 }, owner.
Controls
.Cast<Control>());
588
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
746
Assert.Equal(items, owner.
Controls
.Cast<Control>());
1312
Assert.Empty(owner.
Controls
);
1321
Assert.Empty(owner.
Controls
);
1363
Assert.Empty(owner.
Controls
);
1378
Assert.Empty(owner.
Controls
);
1419
Assert.Empty(owner.
Controls
);
1431
Assert.Empty(owner.
Controls
);
1484
Assert.Empty(owner.
Controls
);
1502
Assert.Empty(owner.
Controls
);
1997
Assert.Same(value1, Assert.Single(owner.
Controls
));
2016
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
2047
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
2125
Assert.Same(value1, Assert.Single(owner.
Controls
));
2153
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
2197
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
2301
Assert.Same(value1, Assert.Single(owner.
Controls
));
2323
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
2360
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
2458
Assert.Same(value1, Assert.Single(owner.
Controls
));
2489
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
2539
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
2696
Assert.Equal(items, owner.
Controls
.Cast<TabPage>());
3043
Assert.Same(value1, Assert.Single(owner.
Controls
));
3062
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
3093
Assert.Equal(new Control[] { value2, value1 }, owner.
Controls
.Cast<Control>());
3378
Assert.Equal(new Control[] { page1, page2, page3 }, owner.
Controls
.Cast<Control>());
3423
Assert.Equal(new Control[] { page1, page2, page3 }, owner.
Controls
.Cast<Control>());
3463
Assert.Equal(new Control[] { page1, page2, page3 }, owner.
Controls
.Cast<Control>());
3519
Assert.Equal(new Control[] { page1, page2, page3 }, owner.
Controls
.Cast<Control>());
3777
Assert.Equal(new Control[] { page1, page2, page3 }, owner.
Controls
.Cast<Control>());
3821
Assert.Equal(new Control[] { page1, page2, page3 }, owner.
Controls
.Cast<Control>());
3860
Assert.Equal(new Control[] { page1, page2, page3 }, owner.
Controls
.Cast<Control>());
3915
Assert.Equal(new Control[] { page1, page2, page3 }, owner.
Controls
.Cast<Control>());
4009
Assert.Same(value1, Assert.Single(owner.
Controls
));
4030
Assert.Same(value1, Assert.Single(owner.
Controls
));
4051
Assert.Empty(owner.
Controls
);
4124
Assert.Same(value1, Assert.Single(owner.
Controls
));
4148
Assert.Same(value1, Assert.Single(owner.
Controls
));
4175
Assert.Empty(owner.
Controls
);
4247
Assert.Same(value1, Assert.Single(owner.
Controls
));
4271
Assert.Same(value1, Assert.Single(owner.
Controls
));
4295
Assert.Empty(owner.
Controls
);
4371
Assert.Same(value1, Assert.Single(owner.
Controls
));
4395
Assert.Same(value1, Assert.Single(owner.
Controls
));
4422
Assert.Empty(owner.
Controls
);
5014
Assert.Equal(page2, TabControl.
Controls
[1]);
5020
Assert.Equal(page3, TabControl.
Controls
[1]);
5022
Assert.Equal(page2, TabControl.
Controls
[2]);
5038
Assert.Equal(page1, TabControl.
Controls
[0]);
5044
Assert.Equal(page2, TabControl.
Controls
[1]);
5050
Assert.Equal(page3, TabControl.
Controls
[1]);
5052
Assert.Equal(page2, TabControl.
Controls
[2]);
System\Windows\Forms\TabControlTests.cs (17)
45
Assert.Empty(control.
Controls
);
46
Assert.Same(control.
Controls
, control.
Controls
);
4856
Assert.Empty(control.
Controls
);
4864
Assert.Empty(control.
Controls
);
4873
Assert.Empty(control.
Controls
);
4889
Assert.Equal(new Control[] { page1, page2 }, control.
Controls
.Cast<Control>());
4897
Assert.Equal(new Control[] { page1, page2 }, control.
Controls
.Cast<Control>());
4906
Assert.Equal(new Control[] { page1, page2 }, control.
Controls
.Cast<Control>());
4979
Assert.Empty(control.
Controls
);
4987
Assert.Empty(control.
Controls
);
5025
Assert.Empty(control.
Controls
);
5039
Assert.Empty(control.
Controls
);
5078
Assert.Empty(control.
Controls
);
5089
Assert.Empty(control.
Controls
);
5138
Assert.Empty(control.
Controls
);
5155
Assert.Empty(control.
Controls
);
System\Windows\Forms\TableLayoutPanelTests.cs (2)
336
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TableLayoutPanel))[nameof(Control.
Controls
)];
356
PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(TableLayoutPanel))[nameof(Control.
Controls
)];
System\Windows\Forms\TabPageTests.cs (12)
52
Assert.Empty(control.
Controls
);
53
Assert.Same(control.
Controls
, control.
Controls
);
54
Assert.IsType<TabPage.TabPageControlCollection>(control.
Controls
);
161
Assert.Empty(control.
Controls
);
162
Assert.Same(control.
Controls
, control.
Controls
);
163
Assert.IsType<TabPage.TabPageControlCollection>(control.
Controls
);
2508
Assert.Empty(oldParent.
Controls
);
2514
Assert.Empty(oldParent.
Controls
);
2527
Assert.Same(control, Assert.Single(parent.
Controls
));
2533
Assert.Same(control, Assert.Single(parent.
Controls
));
System\Windows\Forms\TabPageTests.TabPageControlCollection.cs (4)
30
TabPage.TabPageControlCollection collection = Assert.IsType<TabPage.TabPageControlCollection>(owner.
Controls
);
54
Assert.Same(control1, Assert.Single(owner.
Controls
));
67
Assert.Equal(new Control[] { control1, control2 }, owner.
Controls
.Cast<Control>());
83
Assert.Equal(new Control[] { control2, control1 }, owner.
Controls
.Cast<Control>());
System\Windows\Forms\TextBoxRendererTests.cs (3)
27
form.
Controls
.Add(textbox);
56
form.
Controls
.Add(textbox);
91
form.
Controls
.Add(textbox);
System\Windows\Forms\ToolStripButtonTests.Rendering.cs (6)
21
form.
Controls
.Add(toolStrip);
47
form.
Controls
.Add(toolStrip);
71
form.
Controls
.Add(toolStrip);
97
form.
Controls
.Add(toolStrip);
123
form.
Controls
.Add(toolStrip);
150
form.
Controls
.Add(toolStrip);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
50
Assert.Empty(control.
Controls
);
51
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\ToolStripControlHostTests.cs (4)
3067
Assert.Empty(c.
Controls
);
3089
Assert.Empty(c.
Controls
);
3256
Assert.Empty(c.
Controls
);
3278
Assert.Empty(c.
Controls
);
System\Windows\Forms\ToolStripPanelRow.ToolStripPanelRowControlCollectionTests.cs (3)
23
toolStripContainer.TopToolStripPanel.
Controls
.Add(toolStrip1);
24
toolStripContainer.TopToolStripPanel.
Controls
.Add(toolStrip2);
29
form.
Controls
.Add(toolStripContainer);
System\Windows\Forms\ToolStripPanelTests.cs (5)
49
Assert.Empty(control.
Controls
);
50
Assert.Same(control.
Controls
, control.
Controls
);
349
toolStripContainer.TopToolStripPanel.
Controls
.Add(toolStrip1);
350
var exception = Record.Exception(() => toolStripContainer.TopToolStripPanel.
Controls
.Add(toolStrip2));
System\Windows\Forms\ToolStripSettingsManagerTests.cs (1)
17
mainForm.
Controls
.Add(toolStrip);
System\Windows\Forms\ToolStripTests.cs (2)
1633
form.
Controls
.Add(toolStrip1);
1653
form.
Controls
.Add(toolStrip1);
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
20
form.
Controls
.Add(toolStrip);
System\Windows\Forms\ToolTipTests.cs (6)
808
topLevelControl.
Controls
.Add(control);
842
tabControl.
Controls
.Add(tabPage);
843
form.
Controls
.Add(tabControl);
884
tabControl.
Controls
.Add(tabPage1);
885
tabControl.
Controls
.Add(tabPage2);
886
form.
Controls
.Add(tabControl);
System\Windows\Forms\TreeViewTests.cs (3)
45
Assert.Empty(control.
Controls
);
46
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\UpDownBaseTests.cs (3)
60
Assert.NotEmpty(control.
Controls
);
61
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\UserControlTests.cs (29)
53
Assert.Empty(control.
Controls
);
54
Assert.Same(control.
Controls
, control.
Controls
);
1262
child1.
Controls
.Add(grandchild1);
1265
child2.
Controls
.Add(grandchild2);
1268
child3.
Controls
.Add(grandchild3);
1287
control.
Controls
.Add(child1);
1288
control.
Controls
.Add(child2);
1289
control.
Controls
.Add(child3);
1290
control.
Controls
.Add(child4);
1291
control.
Controls
.Add(child5);
1292
control.
Controls
.Add(child6);
1293
control.
Controls
.Add(child7);
1294
control.
Controls
.Add(child8);
1488
child1.
Controls
.Add(grandchild1);
1491
child2.
Controls
.Add(grandchild2);
1494
child3.
Controls
.Add(grandchild3);
1513
control.
Controls
.Add(child1);
1514
control.
Controls
.Add(child2);
1515
control.
Controls
.Add(child3);
1516
control.
Controls
.Add(child4);
1517
control.
Controls
.Add(child5);
1518
control.
Controls
.Add(child6);
1519
control.
Controls
.Add(child7);
1520
control.
Controls
.Add(child8);
1723
control.
Controls
.Add(child1);
1724
control.
Controls
.Add(child2);
1753
control.
Controls
.Add(child1);
1754
control.
Controls
.Add(child2);
System\Windows\Forms\VScrollBarTests.cs (3)
47
Assert.Empty(control.
Controls
);
48
Assert.Same(control.
Controls
, control.
Controls
);
System\Windows\Forms\WebBrowserTests.cs (22)
42
Assert.Empty(control.
Controls
);
43
Assert.Same(control.
Controls
, control.
Controls
);
1406
Assert.Same(control, Assert.Single(parent.
Controls
));
1411
Assert.Same(control, Assert.Single(parent.
Controls
));
2528
Assert.Empty(control.
Controls
);
2543
Assert.Empty(control.
Controls
);
2554
Assert.Empty(control.
Controls
);
2583
Assert.Empty(control.
Controls
);
2598
Assert.Empty(control.
Controls
);
2609
Assert.Empty(control.
Controls
);
2631
Assert.Empty(control.
Controls
);
2646
Assert.Empty(control.
Controls
);
2657
Assert.Empty(control.
Controls
);
2690
Assert.Empty(control.
Controls
);
2701
Assert.Empty(control.
Controls
);
2730
Assert.Empty(control.
Controls
);
2745
Assert.Empty(control.
Controls
);
2756
Assert.Empty(control.
Controls
);
2782
Assert.Empty(control.
Controls
);
2793
Assert.Empty(control.
Controls
);
4771
form.
Controls
.Add(browser);
TextBoxTests.cs (3)
51
Assert.Empty(control.
Controls
);
52
Assert.Same(control.
Controls
, control.
Controls
);
TextBoxTests.Rendering.cs (1)
23
form.
Controls
.Add(textBox);
TrackBarTests.cs (3)
44
Assert.Empty(control.
Controls
);
45
Assert.Same(control.
Controls
, control.
Controls
);
System.Windows.Forms.UI.IntegrationTests (27)
AnchorLayoutTests.cs (12)
62
form.
Controls
.Remove(button);
85
form.
Controls
.Add(button);
106
form.
Controls
.Add(button);
128
form.
Controls
.Add(button);
149
container.
Controls
.Add(button);
154
form.
Controls
.Add(container);
178
container.
Controls
.Add(button);
183
form.
Controls
.Add(container);
192
container.
Controls
.Remove(button);
196
form.
Controls
.Add(button);
212
form.
Controls
.Add(button);
246
form.
Controls
.Add(button);
DesignBehaviorsTests.cs (1)
86
form.
Controls
.Add(rootView);
Dpi\SplitContainerTests.cs (1)
59
form.
Controls
.Add(splitContainer);
DragDropTests.cs (3)
695
Controls
.AddRange(
989
Controls
.AddRange(
1038
Controls
.Add(tableLayoutPanel);
ImageListTests.cs (1)
113
form.
Controls
.Add(listView1);
Infra\ControlTestBase.cs (3)
236
form.
Controls
.Add(control);
264
form.
Controls
.Add(control);
293
form.
Controls
.Add(tableLayout);
ListBoxAccesibleObjectTests.cs (2)
17
form.
Controls
.Add(listBox);
18
form.
Controls
.Add(textBox);
MenuStripTests.cs (1)
21
form.
Controls
.Add(menuStrip);
TabControlTests.cs (1)
118
Assert.Equal(tabControl.
Controls
[i], tabControl.TabPages[i]);
ToolStripTests.cs (2)
43
form.
Controls
.Add(toolStrip);
82
form.
Controls
.Add(menuStrip);
TrimTest (4)
Form1.Designer.cs (4)
52
splitContainer1.Panel1.
Controls
.Add(textBox1);
56
splitContainer1.Panel2.
Controls
.Add(button1);
57
splitContainer1.Panel2.
Controls
.Add(comboBox1);
101
Controls
.Add(splitContainer1);
TrimTestBinaryDeserialization (1)
Form1.Designer.cs (1)
61
Controls
.Add(listView1);
WindowsFormsIntegration (3)
System\Windows\Integration\WindowsFormsHost.cs (3)
757
{
Controls
.Remove(Child); }
760
{
Controls
.Add(value); }
834
Controls
.Add(_focusTarget);
WinFormsControlsTest (307)
AnchorLayoutTests.Designer.cs (9)
141
this.
Controls
.Add(this.button9);
142
this.
Controls
.Add(this.button8);
143
this.
Controls
.Add(this.button7);
144
this.
Controls
.Add(this.button6);
145
this.
Controls
.Add(this.button5);
146
this.
Controls
.Add(this.button4);
147
this.
Controls
.Add(this.button3);
148
this.
Controls
.Add(this.button2);
149
this.
Controls
.Add(this.button1);
Buttons.cs (4)
38
Controls
.Add(table);
58
panel.
Controls
.Add(radioButton);
79
panel.
Controls
.Add(checkBox);
101
panel.
Controls
.Add(button);
Calendar.Designer.cs (16)
235
this.
Controls
.Add(this.currentDPILabel1);
236
this.
Controls
.Add(this.label5);
237
this.
Controls
.Add(this.showTodayCheckBox);
238
this.
Controls
.Add(this.showWeekNumbersCheckBox);
239
this.
Controls
.Add(this.resetMaxDateButton);
240
this.
Controls
.Add(this.resetMinDateButton);
241
this.
Controls
.Add(this.label4);
242
this.
Controls
.Add(this.daysOfWeekComboBox);
243
this.
Controls
.Add(this.label3);
244
this.
Controls
.Add(this.label2);
245
this.
Controls
.Add(this.setMaxDateButton);
246
this.
Controls
.Add(this.maxDateDateTimePicker);
247
this.
Controls
.Add(this.label1);
248
this.
Controls
.Add(this.setMinDateButton);
249
this.
Controls
.Add(this.minDateDateTimePicker);
250
this.
Controls
.Add(this.monthCalendar1);
ChartControl.Designer.cs (4)
416
this.
Controls
.Add(this.chart4);
417
this.
Controls
.Add(this.chart3);
418
this.
Controls
.Add(this.chart2);
419
this.
Controls
.Add(this.chart1);
CollectionEditors.Designer.cs (7)
109
this.
Controls
.Add(this.domainUpDown1);
110
this.
Controls
.Add(this.label1);
111
this.
Controls
.Add(this.propertyGrid1);
112
this.
Controls
.Add(this.listView1);
113
this.
Controls
.Add(this.textBox1);
114
this.
Controls
.Add(this.maskedTextBox1);
115
this.
Controls
.Add(this.comboBox1);
ComboBoxes.Designer.cs (16)
269
this.
Controls
.Add(this.currentDPILabel1);
270
this.
Controls
.Add(this.label1);
271
this.
Controls
.Add(this.dataBoundLabel);
272
this.
Controls
.Add(this.dataBoundComboBox);
273
this.
Controls
.Add(this.comboBox9);
274
this.
Controls
.Add(this.comboBox10);
275
this.
Controls
.Add(this.comboBox11);
276
this.
Controls
.Add(this.comboBox12);
277
this.
Controls
.Add(this.comboBox8);
278
this.
Controls
.Add(this.comboBox7);
279
this.
Controls
.Add(this.comboBox6);
280
this.
Controls
.Add(this.comboBox5);
281
this.
Controls
.Add(this.comboBox4);
282
this.
Controls
.Add(this.comboBox3);
283
this.
Controls
.Add(this.comboBox2);
284
this.
Controls
.Add(this.comboBox1);
ComboBoxesWithScrollBars.Designer.cs (22)
107
this.changeHeightGroupBox1.
Controls
.Add(this.label1);
108
this.changeHeightGroupBox1.
Controls
.Add(this.changeDDH_UpDown1);
109
this.changeHeightGroupBox1.
Controls
.Add(this.label2);
110
this.changeHeightGroupBox1.
Controls
.Add(this.changeCBHeight_UpDown2);
111
this.changeHeightGroupBox1.
Controls
.Add(this.label3);
112
this.changeHeightGroupBox1.
Controls
.Add(this.changeDDH_UpDown3);
197
this.changeMaxDropDownItemsGroupBox2.
Controls
.Add(this.maxDropDownItemsUpDown1);
198
this.changeMaxDropDownItemsGroupBox2.
Controls
.Add(this.maxDropDownItemsUpDown2);
199
this.changeMaxDropDownItemsGroupBox2.
Controls
.Add(this.maxDropDownItemsUpDown3);
251
this.changeIntegralHeightGroupBox3.
Controls
.Add(this.integralHeightCheckBox1);
252
this.changeIntegralHeightGroupBox3.
Controls
.Add(this.integralHeightCheckBox2);
253
this.changeIntegralHeightGroupBox3.
Controls
.Add(this.integralHeightCheckBox3);
298
this.changeHeightsStyleGroupBox4.
Controls
.Add(this.useDifferentHeightsCheckBox1);
299
this.changeHeightsStyleGroupBox4.
Controls
.Add(this.useDifferentHeightsCheckBox2);
300
this.changeHeightsStyleGroupBox4.
Controls
.Add(this.useDifferentHeightsCheckBox3);
350
this.
Controls
.Add(this.changeHeightGroupBox1);
351
this.
Controls
.Add(this.changeMaxDropDownItemsGroupBox2);
352
this.
Controls
.Add(this.changeIntegralHeightGroupBox3);
353
this.
Controls
.Add(this.changeHeightsStyleGroupBox4);
354
this.
Controls
.Add(this.comboBox1);
355
this.
Controls
.Add(this.comboBox2);
356
this.
Controls
.Add(this.comboBox3);
CustomComCtl32Button.cs (1)
72
Controls
.Add(control);
DataGridViewInVirtualModeTest.Designer.cs (1)
86
this.
Controls
.Add(this.dataGridView1);
DataGridViewTest.Designer.cs (6)
210
this.
Controls
.Add(this.resetFontButton);
211
this.
Controls
.Add(this.label1);
212
this.
Controls
.Add(this.numericUpDown1);
213
this.
Controls
.Add(this.currentDPILabel1);
214
this.
Controls
.Add(this.changeFontButton);
215
this.
Controls
.Add(this.dataGridView1);
DateTimePicker.Designer.cs (5)
98
this.
Controls
.Add(dateTimePicker5);
99
this.
Controls
.Add(dateTimePicker4);
100
this.
Controls
.Add(dateTimePicker3);
101
this.
Controls
.Add(dateTimePicker2);
102
this.
Controls
.Add(dateTimePicker1);
DesignTimeAligned.Designer.cs (5)
97
this.
Controls
.Add(this.currentDPILabel1);
98
this.
Controls
.Add(this.textBox1);
99
this.
Controls
.Add(this.button1);
100
this.
Controls
.Add(this.label2);
101
this.
Controls
.Add(this.label1);
Dialogs.Designer.cs (8)
123
this.flowLayoutPanel1.
Controls
.Add(this.btnColorDialog);
124
this.flowLayoutPanel1.
Controls
.Add(this.btnThreadExceptionDialog);
125
this.flowLayoutPanel1.
Controls
.Add(this.btnPrintDialog);
126
this.flowLayoutPanel1.
Controls
.Add(this.btnFolderBrowserDialog);
127
this.flowLayoutPanel1.
Controls
.Add(this.btnOpenFileDialog);
128
this.flowLayoutPanel1.
Controls
.Add(this.btnSaveFileDialog);
151
this.
Controls
.Add(this.propertyGrid1);
152
this.
Controls
.Add(this.flowLayoutPanel1);
DockLayoutTests.Designer.cs (5)
98
this.
Controls
.Add(this.button5);
99
this.
Controls
.Add(this.button4);
100
this.
Controls
.Add(this.button2);
101
this.
Controls
.Add(this.button3);
102
this.
Controls
.Add(this.button1);
DragDrop.cs (1)
458
Controls
.Add(tableLayoutPanel);
DragDrop.Designer.cs (1)
200
Controls
.Add(tableLayoutPanel1);
ErrorProviderTest.Designer.cs (7)
131
this.
Controls
.Add(this.label1);
132
this.
Controls
.Add(this.label1_2);
133
this.
Controls
.Add(this.textBox1);
134
this.
Controls
.Add(this.label2);
135
this.
Controls
.Add(this.label2_1);
136
this.
Controls
.Add(this.textBox2);
137
this.
Controls
.Add(this.submitButton);
FormBorderStyles.Designer.cs (2)
58
this.
Controls
.Add(this.lblFormBorderStyle);
59
this.
Controls
.Add(this.btnChangeFormBorderStyle);
FormOwnerTestForm.cs (1)
46
Controls
.Add(new Label()
FormShowInTaskbar.cs (2)
26
Controls
.Add(btnTest);
58
form.
Controls
.Add(btnTest);
ListBoxes.Designer.cs (20)
203
this.
Controls
.Add(this.label1);
204
this.
Controls
.Add(this.listBox1);
205
this.
Controls
.Add(this.textBox1);
206
this.
Controls
.Add(this.addButton1);
207
this.
Controls
.Add(this.deleteButton1);
208
this.
Controls
.Add(this.label2);
209
this.
Controls
.Add(this.listBox2);
210
this.
Controls
.Add(this.textBox2);
211
this.
Controls
.Add(this.addButton2);
212
this.
Controls
.Add(this.deleteButton2);
213
this.
Controls
.Add(this.label3);
214
this.
Controls
.Add(this.listBox3);
215
this.
Controls
.Add(this.textBox3);
216
this.
Controls
.Add(this.addButton3);
217
this.
Controls
.Add(this.deleteButton3);
218
this.
Controls
.Add(this.label4);
219
this.
Controls
.Add(this.listBox4);
220
this.
Controls
.Add(this.textBox4);
221
this.
Controls
.Add(this.addButton4);
222
this.
Controls
.Add(this.deleteButton4);
ListViewTest.cs (1)
140
Controls
.Add(listView2);
ListViewTest.Designer.cs (5)
153
this.
Controls
.Add(this.btnReplaceImageListView1);
154
this.
Controls
.Add(this.btnLoadImagesListView1);
155
this.
Controls
.Add(this.btnClearListView1);
156
this.
Controls
.Add(this.listView1);
157
this.
Controls
.Add(this.listView3);
MainForm.cs (5)
38
overarchingFlowLayoutPanel.
Controls
.Add(button);
237
overarchingFlowLayoutPanel.
Controls
[(int)MainFormControlsTabOrder.ButtonsButton].Focus();
247
foreach (Control control in overarchingFlowLayoutPanel.
Controls
)
291
int padding = overarchingFlowLayoutPanel.
Controls
[0].Margin.All;
295
(int)Math.Ceiling((overarchingFlowLayoutPanel.
Controls
.Count + 1) / 3.0) * (biggestButton.Height + padding * 2)
MainForm.Designer.cs (1)
51
this.
Controls
.Add(this.overarchingFlowLayoutPanel);
MdiChild.cs (4)
64
Controls
.Add(_menuStrip);
68
Controls
.Remove(_menuStrip);
76
MyParent.
Controls
.Add(MyParent.MainMenu);
80
MyParent.
Controls
.Remove(MyParent.MainMenu);
MdiChild.Designer.cs (8)
47
this.panel1.
Controls
.Add(this.chkRightToLeft);
48
this.panel1.
Controls
.Add(this.chkChildAlign);
49
this.panel1.
Controls
.Add(this.chkAddMenustrip);
50
this.panel1.
Controls
.Add(this.chkAddParentMenustrip);
51
this.panel1.
Controls
.Add(this.chkSetMenustrip);
52
this.panel1.
Controls
.Add(this.chkSetParentMenustrip);
53
this.panel1.
Controls
.Add(this.btnOpenChild);
143
this.
Controls
.Add(this.panel1);
MediaPlayer.Designer.cs (1)
56
this.
Controls
.Add(this.axWindowsMediaPlayer1);
MenuStripAndCheckedListBox.Designer.cs (2)
286
this.
Controls
.Add(this.currentDpiLabel);
287
this.
Controls
.Add(this.menuStrip1);
MessageBoxes.Designer.cs (1)
54
this.
Controls
.Add(this.propertyGrid1);
MultipleControls.cs (1)
102
Controls
.Add(listView2);
MultipleControls.Designer.cs (21)
127
this.tabControl1.
Controls
.Add(this.tabPage1);
128
this.tabControl1.
Controls
.Add(this.tabPage2);
139
this.tabPage1.
Controls
.Add(this.comboBox1);
158
this.tabPage2.
Controls
.Add(this.checkBox1);
159
this.tabPage2.
Controls
.Add(this.checkBox2);
214
this.groupBox1.
Controls
.Add(this.radioButton2);
215
this.groupBox1.
Controls
.Add(this.radioButton1);
302
this.
Controls
.Add(this.checkedListBox2);
303
this.
Controls
.Add(this.domainUpDown1);
304
this.
Controls
.Add(this.numericUpDown1);
305
this.
Controls
.Add(this.checkedListBox1);
306
this.
Controls
.Add(this.groupBox1);
307
this.
Controls
.Add(this.tabControl1);
308
this.
Controls
.Add(this.textBox1);
309
this.
Controls
.Add(this.richTextBox1);
310
this.
Controls
.Add(this.maskedTextBox1);
311
this.
Controls
.Add(this.label1);
312
this.
Controls
.Add(this.button1);
313
this.
Controls
.Add(this.progressBar1);
314
this.
Controls
.Add(this.linkLabel1);
315
this.
Controls
.Add(this.linkLabel2);
Panels.Designer.cs (1)
91
this.
Controls
.Add(this.tableLayoutPanel1);
Password.Designer.cs (20)
240
Controls
.Add(label11);
241
Controls
.Add(label10);
242
Controls
.Add(label9);
243
Controls
.Add(label8);
244
Controls
.Add(label7);
245
Controls
.Add(label6);
246
Controls
.Add(label5);
247
Controls
.Add(label4);
248
Controls
.Add(label3);
249
Controls
.Add(textBox5);
250
Controls
.Add(textBox4);
251
Controls
.Add(button1);
252
Controls
.Add(textBox3);
253
Controls
.Add(maskedTextBox3);
254
Controls
.Add(maskedTextBox2);
255
Controls
.Add(maskedTextBox1);
256
Controls
.Add(label2);
257
Controls
.Add(label1);
258
Controls
.Add(textBox2);
259
Controls
.Add(textBox1);
PictureBoxes.Designer.cs (3)
84
this.
Controls
.Add(this.imageUri);
85
this.
Controls
.Add(this.btnloadImage);
86
this.
Controls
.Add(this.pictureBox1);
PropertyGrid.Designer.cs (1)
52
this.
Controls
.Add(this.propertyGrid1);
RichTextBoxes.cs (3)
132
prompt.
Controls
.Add(textBox);
133
prompt.
Controls
.Add(confirmation);
134
prompt.
Controls
.Add(textLabel);
RichTextBoxes.Designer.cs (2)
65
this.
Controls
.Add(this.richTextBox2);
66
this.
Controls
.Add(this.richTextBox1);
ScalingBeforeChanges.Designer.cs (1)
52
this.
Controls
.Add(this.checkBox1);
ScrollableControls.Designer.cs (33)
92
flowLayoutPanel1.
Controls
.Add(button1);
93
flowLayoutPanel1.
Controls
.Add(button2);
94
flowLayoutPanel1.
Controls
.Add(button3);
95
flowLayoutPanel1.
Controls
.Add(button4);
96
flowLayoutPanel1.
Controls
.Add(button5);
160
panel1.
Controls
.Add(button9);
161
panel1.
Controls
.Add(button8);
162
panel1.
Controls
.Add(button7);
163
panel1.
Controls
.Add(button6);
223
splitContainer1.Panel1.
Controls
.Add(button16);
224
splitContainer1.Panel1.
Controls
.Add(button15);
225
splitContainer1.Panel1.
Controls
.Add(button10);
230
splitContainer1.Panel2.
Controls
.Add(button14);
231
splitContainer1.Panel2.
Controls
.Add(button13);
232
splitContainer1.Panel2.
Controls
.Add(button12);
233
splitContainer1.Panel2.
Controls
.Add(button11);
312
tabControl1.
Controls
.Add(tabPage1);
313
tabControl1.
Controls
.Add(tabPage2);
323
tabPage1.
Controls
.Add(button17);
439
Controls
.Add(listBox1);
440
Controls
.Add(label7);
441
Controls
.Add(label6);
442
Controls
.Add(treeView1);
443
Controls
.Add(textBox1);
444
Controls
.Add(label5);
445
Controls
.Add(label4);
446
Controls
.Add(tabControl1);
447
Controls
.Add(label3);
448
Controls
.Add(splitContainer1);
449
Controls
.Add(label2);
450
Controls
.Add(panel1);
451
Controls
.Add(label1);
452
Controls
.Add(flowLayoutPanel1);
ScrollBars.Designer.cs (9)
138
this.
Controls
.Add(this.lblVValue);
139
this.
Controls
.Add(this.lblHValue);
140
this.
Controls
.Add(this.lblMaximum);
141
this.
Controls
.Add(this.lblMinimum);
142
this.
Controls
.Add(this.chbRightToLeft);
143
this.
Controls
.Add(this.numericMaximum);
144
this.
Controls
.Add(this.numericMinimum);
145
this.
Controls
.Add(this.vScrollBar);
146
this.
Controls
.Add(this.hScrollBar);
Splitter.Designer.cs (1)
63
this.
Controls
.Add(this.splitContainer1);
TaskDialogSamples.cs (1)
41
flowLayout.
Controls
.Add(button);
TextBoxes.Designer.cs (6)
154
this.
Controls
.Add(this.textBox);
155
this.
Controls
.Add(this.RTLTextBox);
156
this.
Controls
.Add(this.multilineTextBox);
157
this.
Controls
.Add(this.RTLMultilineTextBox);
158
this.
Controls
.Add(this.richTextBox);
159
this.
Controls
.Add(this.RTLRichTextBox);
ToolStripSeparatorPreferredSize.cs (3)
88
Controls
.Add(_toolStrip1);
89
Controls
.Add(_label1);
90
Controls
.Add(_buttonChangeOrientation);
ToolStripTests.Designer.cs (6)
438
this.
Controls
.Add(this.label1);
439
this.
Controls
.Add(this.statusStrip1);
440
this.
Controls
.Add(this.toolStrip4);
441
this.
Controls
.Add(this.toolStrip3);
442
this.
Controls
.Add(this.toolStrip2);
443
this.
Controls
.Add(this.toolStrip1);
ToolTipTests.Designer.cs (8)
84
this.flowLayoutPanel1.
Controls
.Add(this.automaticDelayButton);
85
this.flowLayoutPanel1.
Controls
.Add(this.autoPopDelayButton);
86
this.flowLayoutPanel1.
Controls
.Add(this.delaysNotSetButton);
87
this.flowLayoutPanel1.
Controls
.Add(this.defaultAutomaticDelayButton);
88
this.flowLayoutPanel1.
Controls
.Add(this.defaultAutoPopDelayButton);
89
this.flowLayoutPanel1.
Controls
.Add(this.initialDelayButton);
90
this.flowLayoutPanel1.
Controls
.Add(this.autoEllipsisButton);
162
this.
Controls
.Add(this.flowLayoutPanel1);
TrackBars.Designer.cs (15)
96
this.gbOrientation.
Controls
.Add(this.rbHorizontal);
97
this.gbOrientation.
Controls
.Add(this.rbVertical);
250
this.
Controls
.Add(this.lblTrackBarValue);
251
this.
Controls
.Add(this.lblTrackBarSize);
252
this.
Controls
.Add(this.lblTickFrequency);
253
this.
Controls
.Add(this.lblMaximum);
254
this.
Controls
.Add(this.lblMinimum);
255
this.
Controls
.Add(this.numericFrequency);
256
this.
Controls
.Add(this.numericMaximum);
257
this.
Controls
.Add(this.numericMinimum);
258
this.
Controls
.Add(this.chbRightToLeftLayout);
259
this.
Controls
.Add(this.chbRightToLeft);
260
this.
Controls
.Add(this.gbOrientation);
261
this.
Controls
.Add(this.trackBar1);
262
this.
Controls
.Add(this.tickstyleNone);
TreeViewTest.Designer.cs (1)
65
this.
Controls
.Add(this.treeView1);