56 references to Cancel
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
50MyCancelButton.DialogResult = DialogResult.Cancel
PresentationUI (9)
MS\Internal\Documents\CredentialManagerDialog.Designer.cs (1)
86this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
MS\Internal\Documents\RightsManagementManager.cs (3)
257DialogResult result = DialogResult.Cancel; 312DialogResult result = DialogResult.Cancel; 458DialogResult 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)
84this._cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
MS\Internal\Documents\RMPermissions.Designer.cs (1)
155this.closeButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
MS\Internal\Documents\RMPublishingDialog.Designer.cs (1)
313this.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)
172DialogResult = DialogResult.Cancel,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (4)
4943revert = uiService.ShowDialog(ErrorDialog) == DialogResult.Cancel; 4947revert = ShowDialog(ErrorDialog) == DialogResult.Cancel; 5018revert = uiService.ShowDialog(ErrorDialog) == DialogResult.Cancel; 5022revert = ShowDialog(ErrorDialog) == DialogResult.Cancel;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
146DialogResult = DialogResult.Cancel;
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (2)
179DialogResult result = DialogResult.Cancel; 220result = 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)
721value.DialogResult = DialogResult.Cancel; 6580_dialogResult = DialogResult.Cancel; 6889DialogResult = 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; 671DialogResult = DialogResult.Cancel;
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
246if (result != DialogResult.Cancel)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (1)
208_cancelButton.DialogResult = DialogResult.Cancel;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
282DialogResult = DialogResult.Cancel; 601_cancelButton.DialogResult = DialogResult.Cancel;
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
749DialogResult result = DialogResult.Cancel; 772DialogResult result = DialogResult.Cancel;
System\Windows\Forms\Design\FolderNameEditor.FolderBrowser.cs (1)
73return DialogResult.Cancel;
System\Windows\Forms\Design\FormatStringDialog.cs (2)
187_cancelButton.DialogResult = DialogResult.Cancel; 251DialogResult = 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; 167DialogResult = DialogResult.Cancel;
System\Windows\Forms\Design\StyleEditorForm.cs (3)
254_cancelButton.DialogResult = DialogResult.Cancel; 1104DialogResult = DialogResult.Cancel; 1116DialogResult = 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)] 107Assert.Equal(DialogResult.Cancel, form.DialogResult);
FolderBrowserDialogTests.cs (1)
27Assert.Equal(DialogResult.Cancel, dialog.ShowDialog(dialogOwnerForm));
OpenFileDialogTests.cs (2)
22Assert.Equal(DialogResult.Cancel, dialog.ShowDialog(dialogOwnerForm)); 31Assert.Equal(DialogResult.Cancel, dialog.ShowDialog(dialogOwnerForm));
PrintDialogTests.cs (1)
22Assert.Equal(DialogResult.Cancel, dialog.ShowDialog(dialogOwnerForm));