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