56 references to Cancel
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
50
MyCancelButton.DialogResult = DialogResult.
Cancel
PresentationUI (9)
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
86
this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.
Cancel
;
MS\Internal\Documents\RightsManagementManager.cs (3)
257
DialogResult result = DialogResult.
Cancel
;
312
DialogResult result = DialogResult.
Cancel
;
458
DialogResult result = DialogResult.
Cancel
;
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (1)
197
_cancelButton.DialogResult = System.Windows.Forms.DialogResult.
Cancel
;
MS\Internal\Documents\RMEnrollmentPage2.Designer.cs (1)
84
this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.
Cancel
;
MS\Internal\Documents\RMPermissions.Designer.cs (1)
155
this.closeButton.DialogResult = System.Windows.Forms.DialogResult.
Cancel
;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
313
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.
Cancel
;
MS\Internal\Documents\SigningDialog.Designer.cs (1)
199
_cancelButton.DialogResult = System.Windows.Forms.DialogResult.
Cancel
;
System.Windows.Forms (13)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
172
DialogResult = DialogResult.
Cancel
,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
4943
revert = uiService.ShowDialog(ErrorDialog) == DialogResult.
Cancel
;
4947
revert = ShowDialog(ErrorDialog) == DialogResult.
Cancel
;
5018
revert = uiService.ShowDialog(ErrorDialog) == DialogResult.
Cancel
;
5022
revert = ShowDialog(ErrorDialog) == DialogResult.
Cancel
;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
146
DialogResult = DialogResult.
Cancel
;
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (2)
179
DialogResult result = DialogResult.
Cancel
;
220
result = RunDialog(ownerHwnd.Handle) ? DialogResult.OK : DialogResult.
Cancel
;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
264
_continueButton.DialogResult = DialogResult.
Cancel
;
System\Windows\Forms\Form.cs (3)
721
value.DialogResult = DialogResult.
Cancel
;
6580
_dialogResult = DialogResult.
Cancel
;
6889
DialogResult = DialogResult.
Cancel
;
System\Windows\Forms\MDI\MDIWindowDialog.cs (1)
117
_cancelButton.DialogResult = DialogResult.
Cancel
;
System.Windows.Forms.Design (19)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
468
_cancelButton.DialogResult = DialogResult.
Cancel
;
671
DialogResult = DialogResult.
Cancel
;
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
246
if (result != DialogResult.
Cancel
)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
208
_cancelButton.DialogResult = DialogResult.
Cancel
;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
282
DialogResult = DialogResult.
Cancel
;
601
_cancelButton.DialogResult = DialogResult.
Cancel
;
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
749
DialogResult result = DialogResult.
Cancel
;
772
DialogResult result = DialogResult.
Cancel
;
System\Windows\Forms\Design\FolderNameEditor.FolderBrowser.cs (1)
73
return DialogResult.
Cancel
;
System\Windows\Forms\Design\FormatStringDialog.cs (2)
187
_cancelButton.DialogResult = DialogResult.
Cancel
;
251
DialogResult = DialogResult.
Cancel
;
System\Windows\Forms\Design\LinkAreaEditor.LinkAreaUI.cs (1)
81
_cancelButton.DialogResult = DialogResult.
Cancel
;
System\Windows\Forms\Design\MaskDesignerDialog.cs (1)
197
_btnCancel.DialogResult = DialogResult.
Cancel
;
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (2)
107
_cancelButton.DialogResult = DialogResult.
Cancel
;
167
DialogResult = DialogResult.
Cancel
;
System\Windows\Forms\Design\StyleEditorForm.cs (3)
254
_cancelButton.DialogResult = DialogResult.
Cancel
;
1104
DialogResult = DialogResult.
Cancel
;
1116
DialogResult = DialogResult.
Cancel
;
System\Windows\Forms\Design\TreeNodeCollectionEditor.cs (1)
247
_btnCancel.DialogResult = DialogResult.
Cancel
;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\CollectionEditorTests.cs (1)
644
.Returns(DialogResult.
Cancel
);
System.Windows.Forms.Tests (7)
System\Windows\Forms\CommonDialogTests.cs (7)
92
[InlineData(false, DialogResult.
Cancel
)]
105
[InlineData(false, DialogResult.
Cancel
)]
121
[InlineData(false, DialogResult.
Cancel
)]
146
[InlineData(false, DialogResult.
Cancel
)]
159
[InlineData(false, DialogResult.
Cancel
)]
181
[InlineData(false, DialogResult.
Cancel
)]
195
[InlineData(false, DialogResult.
Cancel
)]
System.Windows.Forms.UI.IntegrationTests (6)
ButtonTests.cs (2)
20
[InlineData(DialogResult.
Cancel
)]
107
Assert.Equal(DialogResult.
Cancel
, form.DialogResult);
FolderBrowserDialogTests.cs (1)
27
Assert.Equal(DialogResult.
Cancel
, dialog.ShowDialog(dialogOwnerForm));
OpenFileDialogTests.cs (2)
22
Assert.Equal(DialogResult.
Cancel
, dialog.ShowDialog(dialogOwnerForm));
31
Assert.Equal(DialogResult.
Cancel
, dialog.ShowDialog(dialogOwnerForm));
PrintDialogTests.cs (1)
22
Assert.Equal(DialogResult.
Cancel
, dialog.ShowDialog(dialogOwnerForm));