315 references to new
Accessibility_Core_App (59)
CommonControl1.Designer.cs (10)
36this.button12 = new System.Windows.Forms.Button(); 37this.button1 = new System.Windows.Forms.Button(); 38this.button10 = new System.Windows.Forms.Button(); 39this.button9 = new System.Windows.Forms.Button(); 40this.button8 = new System.Windows.Forms.Button(); 41this.button3 = new System.Windows.Forms.Button(); 42this.button4 = new System.Windows.Forms.Button(); 43this.button5 = new System.Windows.Forms.Button(); 44this.button2 = new System.Windows.Forms.Button(); 45this.button6 = new System.Windows.Forms.Button();
ContainerControls.Designer.cs (22)
32this.button2 = new System.Windows.Forms.Button(); 33this.button5 = new System.Windows.Forms.Button(); 34this.button6 = new System.Windows.Forms.Button(); 39this.button7 = new System.Windows.Forms.Button(); 41this.button8 = new System.Windows.Forms.Button(); 43this.button9 = new System.Windows.Forms.Button(); 45this.button10 = new System.Windows.Forms.Button(); 54this.button18 = new System.Windows.Forms.Button(); 55this.button17 = new System.Windows.Forms.Button(); 61this.button19 = new System.Windows.Forms.Button(); 65this.button20 = new System.Windows.Forms.Button(); 67this.button21 = new System.Windows.Forms.Button(); 69this.button4 = new System.Windows.Forms.Button(); 70this.button1 = new System.Windows.Forms.Button(); 71this.button3 = new System.Windows.Forms.Button(); 77this.button12 = new System.Windows.Forms.Button(); 82this.button11 = new System.Windows.Forms.Button(); 84this.button13 = new System.Windows.Forms.Button(); 86this.button14 = new System.Windows.Forms.Button(); 87this.button22 = new System.Windows.Forms.Button(); 88this.button23 = new System.Windows.Forms.Button(); 93this.button24 = new System.Windows.Forms.Button();
ContainerControls2.Designer.cs (4)
35this.button15 = new System.Windows.Forms.Button(); 36this.button16 = new System.Windows.Forms.Button(); 45this.button18 = new System.Windows.Forms.Button(); 46this.button17 = new System.Windows.Forms.Button();
DataBindingExample.Designer.cs (1)
33this.button1 = new System.Windows.Forms.Button();
DialogControls.Designer.cs (4)
30this.ColorDialog = new System.Windows.Forms.Button(); 31this.FolderBrowserDialog = new System.Windows.Forms.Button(); 32this.OpenFileDialog = new System.Windows.Forms.Button(); 33this.SaveFileDialog = new System.Windows.Forms.Button();
Main.Designer.cs (11)
32this.button1 = new System.Windows.Forms.Button(); 33this.button2 = new System.Windows.Forms.Button(); 34this.button3 = new System.Windows.Forms.Button(); 35this.button4 = new System.Windows.Forms.Button(); 36this.button5 = new System.Windows.Forms.Button(); 37this.button6 = new System.Windows.Forms.Button(); 38this.button7 = new System.Windows.Forms.Button(); 39this.button8 = new System.Windows.Forms.Button(); 40this.button9 = new System.Windows.Forms.Button(); 41this.button10 = new System.Windows.Forms.Button(); 42this.button12 = new System.Windows.Forms.Button();
MenuForm.Designer.cs (2)
31this.button1 = new System.Windows.Forms.Button(); 32this.button2 = new System.Windows.Forms.Button();
PrintingControls.Designer.cs (4)
38this.btnSetting = new System.Windows.Forms.Button(); 39this.btnPreView = new System.Windows.Forms.Button(); 40this.btnPrint = new System.Windows.Forms.Button(); 41this.button1 = new System.Windows.Forms.Button();
ToolStripContainer.Designer.cs (1)
88this.button1 = new System.Windows.Forms.Button();
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (2)
37OKButton = New Button 38MyCancelButton = New Button
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
125ButtonCloseDialog = New Button
NativeHost.ManagedControl (1)
ManagedControl.Designer.cs (1)
32this.button1 = new System.Windows.Forms.Button();
PresentationUI (27)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (1)
37this._okButton = new System.Windows.Forms.Button();
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (4)
40this._cancelButton = new System.Windows.Forms.Button(); 41this._okButton = new System.Windows.Forms.Button(); 44this._addButton = new System.Windows.Forms.Button(); 45this._removeButton = new System.Windows.Forms.Button();
MS\Internal\Documents\RequestedSignatureDialog.Designer.cs (2)
36_addButton = new System.Windows.Forms.Button(); 37_cancelButton = new System.Windows.Forms.Button();
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (2)
50_nextButton = new System.Windows.Forms.Button(); 51_cancelButton = new System.Windows.Forms.Button();
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (2)
39this._nextButton = new System.Windows.Forms.Button(); 40this._cancelButton = new System.Windows.Forms.Button();
MS\Internal\Documents\RMPermissions.Designer.cs (1)
49this.closeButton = new System.Windows.Forms.Button();
MS\Internal\Documents\RMPublishingDialog.Designer.cs (7)
47this.buttonPeoplePicker = new System.Windows.Forms.Button(); 49this.buttonAddUser = new System.Windows.Forms.Button(); 50this.buttonEveryone = new System.Windows.Forms.Button(); 51this.buttonRemoveUser = new System.Windows.Forms.Button(); 60this.buttonCancel = new System.Windows.Forms.Button(); 61this.buttonSave = new System.Windows.Forms.Button(); 62this.buttonSaveAs = new System.Windows.Forms.Button();
MS\Internal\Documents\SignatureSummaryDialog.Designer.cs (5)
35_buttonDone = new System.Windows.Forms.Button(); 38_buttonSign = new System.Windows.Forms.Button(); 39_buttonViewCert = new System.Windows.Forms.Button(); 40_buttonRequestDelete = new System.Windows.Forms.Button(); 41_buttonRequestAdd = new System.Windows.Forms.Button();
MS\Internal\Documents\SigningDialog.Designer.cs (3)
47_cancelButton = new System.Windows.Forms.Button(); 48_signButton = new System.Windows.Forms.Button(); 49_signSaveAsButton = new System.Windows.Forms.Button();
System.Windows.Forms (13)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (2)
157_okButton = new() 169_cancelButton = new Button
System\Windows\Forms\Design\ComponentEditorForm.cs (4)
177_okButton = new Button(); 178_cancelButton = new Button(); 179_applyButton = new Button(); 180_helpButton = new Button();
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (4)
61private readonly Button _continueButton = new(); 62private readonly Button _quitButton = new(); 63private readonly Button _detailsButton = new(); 64private readonly Button _helpButton = new();
System\Windows\Forms\MDI\MDIWindowDialog.cs (2)
93_okButton = new Button(); 94_cancelButton = new Button();
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.StatusDialog.cs (1)
51_cancelButton = new Button()
System.Windows.Forms.Design (41)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (2)
153_buttonOK = new Button(); 154_buttonSave = new Button();
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (5)
409_upButton = new Button(); 410_downButton = new Button(); 414_removeButton = new Button(); 415_okButton = new Button(); 416_cancelButton = new Button();
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
24public SplitButton() : base()
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
268_addButton = new Button(); 269_cancelButton = new Button();
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (2)
124_okButton = new Button(); 125_cancelButton = new Button();
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (6)
472_addButton = new Button(); 473_deleteButton = new Button(); 474_moveDown = new Button(); 475_moveUp = new Button(); 483_cancelButton = new Button(); 484_okButton = new Button();
System\Windows\Forms\Design\FormatStringDialog.cs (2)
167_cancelButton = new Button(); 168_okButton = new Button();
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (4)
18private Button _okButton = new(); 19private Button _cancelButton = new(); 54_okButton = new Button(); 55_cancelButton = new Button();
System\Windows\Forms\Design\MaskDesignerDialog.cs (2)
128_btnOK = new Button(); 129_btnCancel = new Button();
System\Windows\Forms\Design\ShortcutKeysEditor.ShortcutKeysUI.cs (1)
128_resetButton = new Button();
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (2)
79_okButton = new Button(); 80_cancelButton = new Button();
System\Windows\Forms\Design\StyleEditorForm.cs (5)
155_addButton = new Button(); 156_removeButton = new Button(); 157_insertButton = new Button(); 159_okButton = new Button(); 160_cancelButton = new Button();
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (7)
211_okButton = new Button(); 212_btnCancel = new Button(); 214_btnAddRoot = new Button(); 215_btnAddChild = new Button(); 216_btnDelete = new Button(); 217_moveDownButton = new Button(); 218_moveUpButton = new Button();
System.Windows.Forms.Design.Tests (6)
ButtonBaseDesignerTests.cs (2)
31using Button button = new(); 51using Button button = new();
ControlDesignerTests.cs (3)
54using Button button = new(); 123using Button parentButton = new(); 143using Button button = new();
System\ComponentModel\Design\ComponentDesignerTests.cs (1)
2808using Button button = new();
System.Windows.Forms.Tests (80)
SerializableTypesTests.cs (1)
285Button button00_10 = new() { Name = "button00_10" };
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (1)
2618using Button button = new Button
System\Windows\Forms\AccessibleObjects\Button.ButtonAccessibleObjectTests.cs (6)
21using Button button = new(); 34using Button button = new() 53using Button button = new() 73using Button button = new() 90using Button button = new(); 118using Button button = new();
System\Windows\Forms\AccessibleObjects\CategoryGridEntryAccessibleObjectTests.cs (6)
67using Button button = new(); 82using Button button = new(); 100using Button button = new(); 117using Button button = new(); 135using Button button = new(); 177using Button button = new();
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (3)
124"invisible" => new Button() { Visible = false }, 125"disabled" => new Button() { Enabled = false }, 147using Button control = new();
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (3)
245using Button buttonFirst = new(); 248using Button buttonLast = new(); 261using Button button1 = new();
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
528using Button button = new();
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (1)
169{ new Button(), new string[] { "DataContext: Object", "Tag: Object" } },
System\Windows\Forms\ButtonBaseTests.cs (15)
1549using Button control = new() 1716using Button control = new() 1886using Button control = new() 1990using Button control = new() 3076using Button control = new() 3171using Button control = new() 3316using Button control = new() 3432using Button control = new() 3550using Button control = new() 3659using Button control = new() 3760using Button control = new() 3857using Button control = new() 3970using Button control = new() 4086using Button control = new() 9380protected override ButtonBase CreateButton() => new Button();
System\Windows\Forms\ButtonRenderingTests.cs (1)
249protected override ButtonBase CreateButton() => new Button();
System\Windows\Forms\ButtonTests.cs (12)
590using Button control = new() 608using Button control = new(); 616using Button control = new() 633using Button control = new(); 662using Button control = new(); 690using Button control = new() 708using Button control = new(); 792using Button control = new() 887using Button control = new() 945using Button control = new() 3314using Button control = new(); 3353using Button control = new()
System\Windows\Forms\ControlEventArgsTests.cs (1)
11yield return new object[] { new Button() };
System\Windows\Forms\ControlTests.cs (14)
784using Button button1 = new(); 785using Button button2 = new(); 786using Button button3 = new(); 803using Button button1 = new(); 804using Button button2 = new(); 805using Button button3 = new(); 822using Button button1 = new(); 823using Button button2 = new(); 824using Button button3 = new(); 843using Button button1 = new(); 844using Button button2 = new(); 845using Button button3 = new(); 898using Button button1 = new(); 900using Button button2 = new();
System\Windows\Forms\DataGridViewEditingControlShowingEventArgsTests.cs (3)
12yield return new object[] { new Button(), null }; 25using Button button = new(); 35using Button button = new();
System\Windows\Forms\DrawToolTipEventArgsTests.cs (5)
14yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new Button(), new Rectangle(1, 2, 3, 4), "", Color.Red, Color.Blue, SystemFonts.DefaultFont }; 15yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new Button(), new Rectangle(-1, -2, -3, -4), "toolTipText", Color.Red, Color.Blue, SystemFonts.DefaultFont }; 38yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), null, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 39yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), string.Empty, Color.Red, Color.Blue, SystemFonts.DefaultFont }; 40yield return new object[] { new SubWin32Window(), new Button(), new Rectangle(1, 2, 3, 4), "tooltipText", Color.Red, Color.Blue, SystemFonts.DefaultFont };
System\Windows\Forms\PopupEventArgsTests.cs (3)
13yield return new object[] { new SubWin32Window(), new Button(), true, new Size(1, 2) }; 14yield return new object[] { new SubWin32Window(), new Button(), true, new Size(-1, -2) }; 40PopupEventArgs e = new(new SubWin32Window(), new Button(), true, new Size(1, 2))
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DropDownButton.DropDownButtonAccessibleObjectTests.cs (1)
84using Button button = new();
System\Windows\Forms\PropertyGridTests.cs (1)
3914using Button button = new();
System\Windows\Forms\ScrollableControlTests.cs (1)
228Button child = new()
System\Windows\Forms\TableLayoutPanelTests.cs (1)
719using Button control = new();
System.Windows.Forms.UI.IntegrationTests (4)
AnchorLayoutTests.cs (1)
279Button button = new()
ButtonTests.cs (1)
401Button control = new()
DragDropTests.cs (1)
90button = new()
PropertyGridTests.cs (1)
300using Button button1 = new();
TrimTest (1)
Form1.Designer.cs (1)
37button1 = new Button();
WinFormsControlsTest (80)
AnchorLayoutTests.Designer.cs (9)
34this.button1 = new System.Windows.Forms.Button(); 35this.button2 = new System.Windows.Forms.Button(); 36this.button3 = new System.Windows.Forms.Button(); 37this.button4 = new System.Windows.Forms.Button(); 38this.button5 = new System.Windows.Forms.Button(); 39this.button6 = new System.Windows.Forms.Button(); 40this.button7 = new System.Windows.Forms.Button(); 41this.button8 = new System.Windows.Forms.Button(); 42this.button9 = new System.Windows.Forms.Button();
Buttons.cs (3)
92button = new Button 105new Button 114new Button
Calendar.Designer.cs (4)
36this.setMinDateButton = new System.Windows.Forms.Button(); 39this.setMaxDateButton = new System.Windows.Forms.Button(); 44this.resetMinDateButton = new System.Windows.Forms.Button(); 45this.resetMaxDateButton = new System.Windows.Forms.Button();
CustomComCtl32Button.cs (1)
43new Button()
DataGridViewTest.Designer.cs (2)
46this.changeFontButton = new System.Windows.Forms.Button(); 49this.resetFontButton = new System.Windows.Forms.Button();
DesignTimeAligned.Designer.cs (1)
36this.button1 = new System.Windows.Forms.Button();
Dialogs.Designer.cs (6)
36this.btnSaveFileDialog = new System.Windows.Forms.Button(); 37this.btnOpenFileDialog = new System.Windows.Forms.Button(); 38this.btnColorDialog = new System.Windows.Forms.Button(); 39this.btnThreadExceptionDialog = new System.Windows.Forms.Button(); 40this.btnPrintDialog = new System.Windows.Forms.Button(); 41this.btnFolderBrowserDialog = new System.Windows.Forms.Button();
DockLayoutTests.Designer.cs (5)
36this.button1 = new System.Windows.Forms.Button(); 37this.button3 = new System.Windows.Forms.Button(); 38this.button2 = new System.Windows.Forms.Button(); 39this.button4 = new System.Windows.Forms.Button(); 40this.button5 = new System.Windows.Forms.Button();
DragDrop.Designer.cs (2)
45buttonOpenCats = new Button(); 46buttonClear = new Button();
ErrorProviderTest.Designer.cs (1)
49this.submitButton = new System.Windows.Forms.Button();
FormBorderStyles.Designer.cs (1)
31this.btnChangeFormBorderStyle = new System.Windows.Forms.Button();
FormShowInTaskbar.cs (2)
17Button btnTest = new() 38Button btnTest = new()
ListBoxes.Designer.cs (8)
37this.addButton1 = new System.Windows.Forms.Button(); 38this.deleteButton1 = new System.Windows.Forms.Button(); 42this.addButton2 = new System.Windows.Forms.Button(); 43this.deleteButton2 = new System.Windows.Forms.Button(); 47this.addButton3 = new System.Windows.Forms.Button(); 48this.deleteButton3 = new System.Windows.Forms.Button(); 52this.addButton4 = new System.Windows.Forms.Button(); 53this.deleteButton4 = new System.Windows.Forms.Button();
ListViewTest.Designer.cs (3)
42this.btnClearListView1 = new System.Windows.Forms.Button(); 43this.btnLoadImagesListView1 = new System.Windows.Forms.Button(); 45this.btnReplaceImageListView1 = new System.Windows.Forms.Button();
MainForm.cs (1)
28Button button = new Button
MdiChild.Designer.cs (1)
35this.btnOpenChild = new System.Windows.Forms.Button();
MultipleControls.Designer.cs (1)
36this.button1 = new System.Windows.Forms.Button();
Password.Designer.cs (1)
44button1 = new Button();
PictureBoxes.Designer.cs (1)
35this.btnloadImage = new System.Windows.Forms.Button();
RichTextBoxes.cs (1)
130Button confirmation = new() { Text = "Ok", Left = 350, Width = 100, Top = 70, DialogResult = DialogResult.OK };
ScrollableControls.Designer.cs (17)
46button1 = new Button(); 47button2 = new Button(); 48button3 = new Button(); 49button4 = new Button(); 50button5 = new Button(); 53button9 = new Button(); 54button8 = new Button(); 55button7 = new Button(); 56button6 = new Button(); 59button16 = new Button(); 60button15 = new Button(); 61button10 = new Button(); 62button14 = new Button(); 63button13 = new Button(); 64button12 = new Button(); 65button11 = new Button(); 69button17 = new Button();
TaskDialogSamples.cs (1)
31Button button = new()
ToolStripSeparatorPreferredSize.cs (1)
35_buttonChangeOrientation = new Button();
ToolTipTests.Designer.cs (7)
32this.delaysNotSetButton = new System.Windows.Forms.Button(); 33this.automaticDelayButton = new System.Windows.Forms.Button(); 34this.autoPopDelayButton = new System.Windows.Forms.Button(); 37this.defaultAutomaticDelayButton = new System.Windows.Forms.Button(); 38this.defaultAutoPopDelayButton = new System.Windows.Forms.Button(); 39this.initialDelayButton = new System.Windows.Forms.Button(); 45this.autoEllipsisButton = new System.Windows.Forms.Button();