333 references to new
Accessibility_Core_App (59)
CommonControl1.Designer.cs (10)
36
this.button12 = new System.Windows.Forms.
Button
();
37
this.button1 = new System.Windows.Forms.
Button
();
38
this.button10 = new System.Windows.Forms.
Button
();
39
this.button9 = new System.Windows.Forms.
Button
();
40
this.button8 = new System.Windows.Forms.
Button
();
41
this.button3 = new System.Windows.Forms.
Button
();
42
this.button4 = new System.Windows.Forms.
Button
();
43
this.button5 = new System.Windows.Forms.
Button
();
44
this.button2 = new System.Windows.Forms.
Button
();
45
this.button6 = new System.Windows.Forms.
Button
();
ContainerControls.Designer.cs (22)
32
this.button2 = new System.Windows.Forms.
Button
();
33
this.button5 = new System.Windows.Forms.
Button
();
34
this.button6 = new System.Windows.Forms.
Button
();
39
this.button7 = new System.Windows.Forms.
Button
();
41
this.button8 = new System.Windows.Forms.
Button
();
43
this.button9 = new System.Windows.Forms.
Button
();
45
this.button10 = new System.Windows.Forms.
Button
();
54
this.button18 = new System.Windows.Forms.
Button
();
55
this.button17 = new System.Windows.Forms.
Button
();
61
this.button19 = new System.Windows.Forms.
Button
();
65
this.button20 = new System.Windows.Forms.
Button
();
67
this.button21 = new System.Windows.Forms.
Button
();
69
this.button4 = new System.Windows.Forms.
Button
();
70
this.button1 = new System.Windows.Forms.
Button
();
71
this.button3 = new System.Windows.Forms.
Button
();
77
this.button12 = new System.Windows.Forms.
Button
();
82
this.button11 = new System.Windows.Forms.
Button
();
84
this.button13 = new System.Windows.Forms.
Button
();
86
this.button14 = new System.Windows.Forms.
Button
();
87
this.button22 = new System.Windows.Forms.
Button
();
88
this.button23 = new System.Windows.Forms.
Button
();
93
this.button24 = new System.Windows.Forms.
Button
();
ContainerControls2.Designer.cs (4)
35
this.button15 = new System.Windows.Forms.
Button
();
36
this.button16 = new System.Windows.Forms.
Button
();
45
this.button18 = new System.Windows.Forms.
Button
();
46
this.button17 = new System.Windows.Forms.
Button
();
DataBindingExample.Designer.cs (1)
33
this.button1 = new System.Windows.Forms.
Button
();
DialogControls.Designer.cs (4)
30
this.ColorDialog = new System.Windows.Forms.
Button
();
31
this.FolderBrowserDialog = new System.Windows.Forms.
Button
();
32
this.OpenFileDialog = new System.Windows.Forms.
Button
();
33
this.SaveFileDialog = new System.Windows.Forms.
Button
();
Main.Designer.cs (11)
32
this.button1 = new System.Windows.Forms.
Button
();
33
this.button2 = new System.Windows.Forms.
Button
();
34
this.button3 = new System.Windows.Forms.
Button
();
35
this.button4 = new System.Windows.Forms.
Button
();
36
this.button5 = new System.Windows.Forms.
Button
();
37
this.button6 = new System.Windows.Forms.
Button
();
38
this.button7 = new System.Windows.Forms.
Button
();
39
this.button8 = new System.Windows.Forms.
Button
();
40
this.button9 = new System.Windows.Forms.
Button
();
41
this.button10 = new System.Windows.Forms.
Button
();
42
this.button12 = new System.Windows.Forms.
Button
();
MenuForm.Designer.cs (2)
31
this.button1 = new System.Windows.Forms.
Button
();
32
this.button2 = new System.Windows.Forms.
Button
();
PrintingControls.Designer.cs (4)
38
this.btnSetting = new System.Windows.Forms.
Button
();
39
this.btnPreView = new System.Windows.Forms.
Button
();
40
this.btnPrint = new System.Windows.Forms.
Button
();
41
this.button1 = new System.Windows.Forms.
Button
();
ToolStripContainer.Designer.cs (1)
88
this.button1 = new System.Windows.Forms.
Button
();
Microsoft.VisualBasic.Forms (3)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (2)
37
OKButton = New
Button
38
MyCancelButton = New
Button
Microsoft\VisualBasic\MyServices\Internal\ProgressDialog.vb (1)
125
ButtonCloseDialog = New
Button
NativeHost.ManagedControl (1)
ManagedControl.Designer.cs (1)
32
this.button1 = new System.Windows.Forms.
Button
();
PresentationUI (27)
MS\Internal\Documents\Application\DocumentPropertiesDialog.Designer.cs (1)
37
this._okButton = new System.Windows.Forms.
Button
();
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (4)
40
this._cancelButton = new System.Windows.Forms.
Button
();
41
this._okButton = new System.Windows.Forms.
Button
();
44
this._addButton = new System.Windows.Forms.
Button
();
45
this._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)
39
this._nextButton = new System.Windows.Forms.
Button
();
40
this._cancelButton = new System.Windows.Forms.
Button
();
MS\Internal\Documents\RMPermissions.Designer.cs (1)
49
this.closeButton = new System.Windows.Forms.
Button
();
MS\Internal\Documents\RMPublishingDialog.Designer.cs (7)
47
this.buttonPeoplePicker = new System.Windows.Forms.
Button
();
49
this.buttonAddUser = new System.Windows.Forms.
Button
();
50
this.buttonEveryone = new System.Windows.Forms.
Button
();
51
this.buttonRemoveUser = new System.Windows.Forms.
Button
();
60
this.buttonCancel = new System.Windows.Forms.
Button
();
61
this.buttonSave = new System.Windows.Forms.
Button
();
62
this.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)
61
private readonly Button _continueButton =
new
();
62
private readonly Button _quitButton =
new
();
63
private readonly Button _detailsButton =
new
();
64
private 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)
24
public SplitButton() :
base
()
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
269
_addButton = new
Button
();
270
_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)
474
_addButton = new
Button
();
475
_deleteButton = new
Button
();
476
_moveDown = new
Button
();
477
_moveUp = new
Button
();
485
_cancelButton = new
Button
();
486
_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)
18
private Button _okButton =
new
();
19
private 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 (24)
ButtonBaseDesignerTests.cs (2)
31
using Button button =
new
();
51
using Button button =
new
();
ControlDesignerTests.cs (21)
30
using Button button =
new
();
44
using Button button =
new
();
53
using Button button =
new
();
62
using Button button =
new
();
71
using Button button =
new
();
80
using Button button =
new
();
89
using Button button =
new
();
99
using Button button =
new
();
115
using Button button =
new
();
124
using Button button =
new
();
133
using Button button =
new
();
143
using Button button =
new
();
146
using Button parentButton =
new
();
156
using Button button =
new
();
165
using Button button =
new
();
174
using Button button =
new
();
183
using Button button =
new
();
198
using Button button =
new
();
209
using Button button =
new
();
218
using Button button =
new
();
227
using Button button =
new
();
System\ComponentModel\Design\ComponentDesignerTests.cs (1)
2808
using Button button =
new
();
System.Windows.Forms.Tests (80)
SerializableTypesTests.cs (1)
285
Button button00_10 =
new
() { Name = "button00_10" };
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (1)
2618
using Button button = new
Button
System\Windows\Forms\AccessibleObjects\Button.ButtonAccessibleObjectTests.cs (6)
21
using Button button =
new
();
34
using Button button =
new
()
53
using Button button =
new
()
73
using Button button =
new
()
90
using Button button =
new
();
118
using Button button =
new
();
System\Windows\Forms\AccessibleObjects\CategoryGridEntryAccessibleObjectTests.cs (6)
67
using Button button =
new
();
82
using Button button =
new
();
100
using Button button =
new
();
117
using Button button =
new
();
135
using Button button =
new
();
177
using Button button =
new
();
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (3)
124
"invisible" => new
Button
() { Visible = false },
125
"disabled" => new
Button
() { Enabled = false },
147
using Button control =
new
();
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (3)
245
using Button buttonFirst =
new
();
248
using Button buttonLast =
new
();
261
using Button button1 =
new
();
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (1)
528
using 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)
1549
using Button control =
new
()
1716
using Button control =
new
()
1886
using Button control =
new
()
1990
using Button control =
new
()
3076
using Button control =
new
()
3171
using Button control =
new
()
3316
using Button control =
new
()
3432
using Button control =
new
()
3550
using Button control =
new
()
3659
using Button control =
new
()
3760
using Button control =
new
()
3857
using Button control =
new
()
3970
using Button control =
new
()
4086
using Button control =
new
()
9380
protected override ButtonBase CreateButton() => new
Button
();
System\Windows\Forms\ButtonRenderingTests.cs (1)
249
protected override ButtonBase CreateButton() => new
Button
();
System\Windows\Forms\ButtonTests.cs (12)
590
using Button control =
new
()
608
using Button control =
new
();
616
using Button control =
new
()
633
using Button control =
new
();
662
using Button control =
new
();
690
using Button control =
new
()
708
using Button control =
new
();
792
using Button control =
new
()
887
using Button control =
new
()
945
using Button control =
new
()
3314
using Button control =
new
();
3353
using Button control =
new
()
System\Windows\Forms\ControlEventArgsTests.cs (1)
11
yield return new object[] { new
Button
() };
System\Windows\Forms\ControlTests.cs (14)
784
using Button button1 =
new
();
785
using Button button2 =
new
();
786
using Button button3 =
new
();
803
using Button button1 =
new
();
804
using Button button2 =
new
();
805
using Button button3 =
new
();
822
using Button button1 =
new
();
823
using Button button2 =
new
();
824
using Button button3 =
new
();
843
using Button button1 =
new
();
844
using Button button2 =
new
();
845
using Button button3 =
new
();
898
using Button button1 =
new
();
900
using Button button2 =
new
();
System\Windows\Forms\DataGridViewEditingControlShowingEventArgsTests.cs (3)
12
yield return new object[] { new
Button
(), null };
25
using Button button =
new
();
35
using Button button =
new
();
System\Windows\Forms\DrawToolTipEventArgsTests.cs (5)
14
yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new
Button
(), new Rectangle(1, 2, 3, 4), "", Color.Red, Color.Blue, SystemFonts.DefaultFont };
15
yield return new object[] { new Mock<IWin32Window>(MockBehavior.Strict).Object, new
Button
(), new Rectangle(-1, -2, -3, -4), "toolTipText", Color.Red, Color.Blue, SystemFonts.DefaultFont };
38
yield return new object[] { new SubWin32Window(), new
Button
(), new Rectangle(1, 2, 3, 4), null, Color.Red, Color.Blue, SystemFonts.DefaultFont };
39
yield return new object[] { new SubWin32Window(), new
Button
(), new Rectangle(1, 2, 3, 4), string.Empty, Color.Red, Color.Blue, SystemFonts.DefaultFont };
40
yield 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)
13
yield return new object[] { new SubWin32Window(), new
Button
(), true, new Size(1, 2) };
14
yield return new object[] { new SubWin32Window(), new
Button
(), true, new Size(-1, -2) };
40
PopupEventArgs e = new(new SubWin32Window(), new
Button
(), true, new Size(1, 2))
System\Windows\Forms\PropertyGridInternal\AccessibleObjects\DropDownButton.DropDownButtonAccessibleObjectTests.cs (1)
84
using Button button =
new
();
System\Windows\Forms\PropertyGridTests.cs (1)
3914
using Button button =
new
();
System\Windows\Forms\ScrollableControlTests.cs (1)
228
Button child =
new
()
System\Windows\Forms\TableLayoutPanelTests.cs (1)
719
using Button control =
new
();
System.Windows.Forms.UI.IntegrationTests (4)
AnchorLayoutTests.cs (1)
279
Button button =
new
()
ButtonTests.cs (1)
401
Button control =
new
()
DragDropTests.cs (1)
90
button =
new
()
PropertyGridTests.cs (1)
300
using Button button1 =
new
();
TrimTest (1)
Form1.Designer.cs (1)
37
button1 = new
Button
();
WinFormsControlsTest (80)
AnchorLayoutTests.Designer.cs (9)
34
this.button1 = new System.Windows.Forms.
Button
();
35
this.button2 = new System.Windows.Forms.
Button
();
36
this.button3 = new System.Windows.Forms.
Button
();
37
this.button4 = new System.Windows.Forms.
Button
();
38
this.button5 = new System.Windows.Forms.
Button
();
39
this.button6 = new System.Windows.Forms.
Button
();
40
this.button7 = new System.Windows.Forms.
Button
();
41
this.button8 = new System.Windows.Forms.
Button
();
42
this.button9 = new System.Windows.Forms.
Button
();
Buttons.cs (3)
92
button = new
Button
105
new
Button
114
new
Button
Calendar.Designer.cs (4)
36
this.setMinDateButton = new System.Windows.Forms.
Button
();
39
this.setMaxDateButton = new System.Windows.Forms.
Button
();
44
this.resetMinDateButton = new System.Windows.Forms.
Button
();
45
this.resetMaxDateButton = new System.Windows.Forms.
Button
();
CustomComCtl32Button.cs (1)
44
new
Button
()
DataGridViewTest.Designer.cs (2)
46
this.changeFontButton = new System.Windows.Forms.
Button
();
49
this.resetFontButton = new System.Windows.Forms.
Button
();
DesignTimeAligned.Designer.cs (1)
36
this.button1 = new System.Windows.Forms.
Button
();
Dialogs.Designer.cs (6)
36
this.btnSaveFileDialog = new System.Windows.Forms.
Button
();
37
this.btnOpenFileDialog = new System.Windows.Forms.
Button
();
38
this.btnColorDialog = new System.Windows.Forms.
Button
();
39
this.btnThreadExceptionDialog = new System.Windows.Forms.
Button
();
40
this.btnPrintDialog = new System.Windows.Forms.
Button
();
41
this.btnFolderBrowserDialog = new System.Windows.Forms.
Button
();
DockLayoutTests.Designer.cs (5)
36
this.button1 = new System.Windows.Forms.
Button
();
37
this.button3 = new System.Windows.Forms.
Button
();
38
this.button2 = new System.Windows.Forms.
Button
();
39
this.button4 = new System.Windows.Forms.
Button
();
40
this.button5 = new System.Windows.Forms.
Button
();
DragDrop.Designer.cs (2)
45
buttonOpenCats = new
Button
();
46
buttonClear = new
Button
();
ErrorProviderTest.Designer.cs (1)
49
this.submitButton = new System.Windows.Forms.
Button
();
FormBorderStyles.Designer.cs (1)
31
this.btnChangeFormBorderStyle = new System.Windows.Forms.
Button
();
FormShowInTaskbar.cs (2)
17
Button btnTest =
new
()
38
Button btnTest =
new
()
ListBoxes.Designer.cs (8)
37
this.addButton1 = new System.Windows.Forms.
Button
();
38
this.deleteButton1 = new System.Windows.Forms.
Button
();
42
this.addButton2 = new System.Windows.Forms.
Button
();
43
this.deleteButton2 = new System.Windows.Forms.
Button
();
47
this.addButton3 = new System.Windows.Forms.
Button
();
48
this.deleteButton3 = new System.Windows.Forms.
Button
();
52
this.addButton4 = new System.Windows.Forms.
Button
();
53
this.deleteButton4 = new System.Windows.Forms.
Button
();
ListViewTest.Designer.cs (3)
42
this.btnClearListView1 = new System.Windows.Forms.
Button
();
43
this.btnLoadImagesListView1 = new System.Windows.Forms.
Button
();
45
this.btnReplaceImageListView1 = new System.Windows.Forms.
Button
();
MainForm.cs (1)
28
Button button = new
Button
MdiChild.Designer.cs (1)
35
this.btnOpenChild = new System.Windows.Forms.
Button
();
MultipleControls.Designer.cs (1)
36
this.button1 = new System.Windows.Forms.
Button
();
Password.Designer.cs (1)
44
button1 = new
Button
();
PictureBoxes.Designer.cs (1)
35
this.btnloadImage = new System.Windows.Forms.
Button
();
RichTextBoxes.cs (1)
130
Button confirmation =
new
() { Text = "Ok", Left = 350, Width = 100, Top = 70, DialogResult = DialogResult.OK };
ScrollableControls.Designer.cs (17)
46
button1 = new
Button
();
47
button2 = new
Button
();
48
button3 = new
Button
();
49
button4 = new
Button
();
50
button5 = new
Button
();
53
button9 = new
Button
();
54
button8 = new
Button
();
55
button7 = new
Button
();
56
button6 = new
Button
();
59
button16 = new
Button
();
60
button15 = new
Button
();
61
button10 = new
Button
();
62
button14 = new
Button
();
63
button13 = new
Button
();
64
button12 = new
Button
();
65
button11 = new
Button
();
69
button17 = new
Button
();
TaskDialogSamples.cs (1)
31
Button button =
new
()
ToolStripSeparatorPreferredSize.cs (1)
36
_buttonChangeOrientation = new System.Windows.Forms.
Button
();
ToolTipTests.Designer.cs (7)
32
this.delaysNotSetButton = new System.Windows.Forms.
Button
();
33
this.automaticDelayButton = new System.Windows.Forms.
Button
();
34
this.autoPopDelayButton = new System.Windows.Forms.
Button
();
37
this.defaultAutomaticDelayButton = new System.Windows.Forms.
Button
();
38
this.defaultAutoPopDelayButton = new System.Windows.Forms.
Button
();
39
this.initialDelayButton = new System.Windows.Forms.
Button
();
45
this.autoEllipsisButton = new System.Windows.Forms.
Button
();