58 writes to Cancel
PresentationCore (1)
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
1120e.Cancel = true;
PresentationFramework (1)
src\Framework\System\Windows\Application.cs (1)
2524e.Cancel = true;
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
1779args.Cancel = true; 1794args.Cancel = true;
System.AddIn (1)
System\Addin\Hosting\AddInProcess.cs (1)
191args.Cancel = true;
System.Data (2)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (2)
1779args.Cancel = true; 1794args.Cancel = true;
System.Drawing (2)
commonui\System\Drawing\Printing\DefaultPrintController.cs (1)
74e.Cancel = true;
commonui\System\Drawing\Printing\PrintController.cs (1)
154printEvent.Cancel = canceled | printEvent.Cancel;
System.Windows.Forms (25)
winforms\Managed\System\WinForms\Application.cs (1)
1107e.Cancel = cancelExit;
winforms\Managed\System\WinForms\Binding.cs (3)
665e.Cancel = true; 1144e.Cancel = true; 1148e.Cancel = true;
winforms\Managed\System\WinForms\ContainerControl.cs (1)
1833ev.Cancel = true;
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (1)
1554e.Cancel = true;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (5)
3866dgvdee.Cancel = true; 3915dgvdee.Cancel = true; 3945dgvdee.Cancel = true; 19623e.Cancel = true; 19634e.Cancel = true;
winforms\Managed\System\WinForms\Form.cs (6)
5490e.Cancel = true; 7018e.Cancel = !CheckCloseDialog(true); 7021e.Cancel = !Validate(true); 7034e.Cancel = true; 7054e.Cancel = true; 7077e.Cancel = m.WParam == IntPtr.Zero;
winforms\Managed\System\WinForms\MaskedTextBox.cs (1)
2602e.Cancel = tve.Cancel;
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (2)
94e.Cancel = true; 146e.Cancel = true;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1870e.Cancel = !AutoClose; 1873e.Cancel = false;
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
886e.Cancel = false;
winforms\Managed\System\WinForms\ToolStripPanelCell.cs (1)
345e.Cancel = true;
winforms\Managed\System\WinForms\ToolTip.cs (1)
2312e.Cancel = true;
System.Workflow.Activities (10)
Rules\Design\Dialogs\BasicBrowserDialog.cs (1)
107e.Cancel = true;
Rules\Design\Dialogs\RuleConditionDialog.cs (2)
147e.Cancel = true; 192e.Cancel = true;
Rules\Design\Dialogs\RuleSetDialog.cs (7)
242e.Cancel = true; 266e.Cancel = true; 290e.Cancel = true; 345e.Cancel = true; 354e.Cancel = true; 379e.Cancel = true; 550e.Cancel = true;
System.Workflow.ComponentModel (6)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (1)
431e.Cancel = true;
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
528e.Cancel = true;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
624e.Cancel = true;
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (2)
1085e.Cancel = true; 1243e.Cancel = true;
AuthoringOM\Design\WorkflowPrinting.cs (1)
103printArgs.Cancel = (!validPrinter || this.workflowView.RootDesigner == null);
System.WorkflowServices (8)
System\Workflow\Activities\Design\OperationPickerDialog.cs (5)
121e.Cancel = true; 406e.Cancel = true; 437e.Cancel = true; 456e.Cancel = true; 484e.Cancel = true;
System\Workflow\Activities\Design\ServiceContractDetailViewControl.cs (1)
64e.Cancel = false;
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (2)
356e.Cancel = false; 380e.Cancel = true;
180 references to Cancel
PresentationFramework (16)
src\Framework\Microsoft\Win32\FileDialog.cs (2)
1397ok = !ceevent.Cancel; 2151ok = !cancelArgs.Cancel;
src\Framework\MS\Internal\Controls\WebBrowserEvent.cs (1)
169cancelRequested = e.Cancel;
src\Framework\MS\Internal\Ink\EraserBehavior.cs (2)
369if ( !args.Cancel ) 408if ( !args.Cancel )
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (2)
677if ( !args.Cancel ) 711if ( !args.Cancel )
src\Framework\System\Windows\Application.cs (2)
1666if (! e.Cancel) 2399if ( secEventArgs.Cancel == false )
src\Framework\System\Windows\Controls\InkCanvas.cs (1)
2479if ( !args.Cancel )
src\Framework\System\Windows\Navigation\NavigationService.cs (4)
1317if (args.Cancel) 2259if (!e.Cancel && this.Application != null && this.Application.CheckAccess()) 2267if (e.Cancel) 2275return (!e.Cancel && !IsDisposed);
src\Framework\System\Windows\Window.cs (2)
2285if (ShouldCloseWindow(e.Cancel)) 4538if (ShouldCloseWindow(e.Cancel))
System (4)
compmod\system\componentmodel\BackgroundWorker.cs (1)
246if (doWorkArgs.Cancel)
compmod\system\componentmodel\CancelEventArgs.cs (1)
16/// Provides data for the <see cref='System.ComponentModel.CancelEventArgs.Cancel'/>
sys\system\configuration\ApplicationSettingsBase.cs (2)
350if (!e.Cancel) { 374if (!e.Cancel) {
System.AddIn (3)
System\Addin\Hosting\AddInProcess.cs (2)
204if (args.Cancel) 273if (args.Cancel)
System\Addin\Hosting\AddInServer.cs (1)
206return args.Cancel;
System.Drawing (6)
commonui\System\Drawing\Printing\DefaultPrintController.cs (1)
191int result = (e.Cancel) ? SafeNativeMethods.AbortDoc(new HandleRef(dc, dc.Hdc)) : SafeNativeMethods.EndDoc(new HandleRef(dc, dc.Hdc));
commonui\System\Drawing\Printing\PrintController.cs (5)
128if (printEvent.Cancel) { 134if (printEvent.Cancel) { 154printEvent.Cancel = canceled | printEvent.Cancel; 178if (queryEvent.Cancel) { 213if (queryEvent.Cancel) {
System.Web (68)
ModelBinding\ModelValidationNode.cs (1)
111if (eValidating.Cancel) {
UI\WebControls\DetailsView.cs (14)
2288if (e.Cancel) { 2330if (e.Cancel) { 2377if (e.Cancel) { 2518if (e.Cancel) { 2551if (!eMode.Cancel) { 2564if (e.Cancel) { 2588if (e.Cancel) { 2650if (e.Cancel) { 2692if (!eMode.Cancel) { 3022if (isBoundToDataSourceControl == false && e.Cancel == false) { 3048if (isBoundToDataSourceControl == false && e.Cancel == false) { 3074if (isBoundToDataSourceControl == false && e.Cancel == false) { 3100if (isBoundToDataSourceControl == false && e.Cancel == false) { 3125if (isBoundToDataSourceControl == false && e.Cancel == false) {
UI\WebControls\FormView.cs (14)
1916if (e.Cancel) { 1960if (e.Cancel) { 2007if (e.Cancel) { 2149if (e.Cancel) { 2183if (!eMode.Cancel) { 2196if (e.Cancel) { 2220if (e.Cancel) { 2280if (e.Cancel) { 2321if (!eMode.Cancel) { 2591if (isBoundToDataSourceControl == false && e.Cancel == false) { 2658if (isBoundToDataSourceControl == false && e.Cancel == false) { 2684if (isBoundToDataSourceControl == false && e.Cancel == false) { 2710if (isBoundToDataSourceControl == false && e.Cancel == false) { 2736if (isBoundToDataSourceControl == false && e.Cancel == false) {
UI\WebControls\GridView.cs (13)
2828if (e.Cancel) { 2871if (e.Cancel) { 2963if (e.Cancel) { 3105if (e.Cancel) { 3133if (e.Cancel) { 3162if (e.Cancel) { 3221if (e.Cancel) { 3695if (isBoundToDataSourceControl == false && e.Cancel == false) { 3751if (isBoundToDataSourceControl == false && e.Cancel == false) { 3802if (isBoundToDataSourceControl == false && e.Cancel == false) { 3819if (isBoundToDataSourceControl == false && e.Cancel == false) { 3844if (isBoundToDataSourceControl == false && e.Cancel == false) { 3891if (isBoundToDataSourceControl == false && e.Cancel == false) {
UI\WebControls\ObjectDataSourceView.cs (10)
821if (filterArgs.Cancel) { 869if (eventArgs.Cancel) { 891if (eventArgs.Cancel) { 943if (eventArgs.Cancel) { 957if (eventArgs.Cancel) { 1050if (eventArgs.Cancel) { 1263if (eventArgs.Cancel) { 1291if (eventArgs.Cancel) { 1937if (eventArgs.Cancel) { 1961if (!disposingEventArgs.Cancel) {
UI\WebControls\SqlDataSourceView.cs (6)
821if (eventArgs.Cancel) { 857if (eventArgs.Cancel) { 931if (filterArgs.Cancel) { 949if (selectingEventArgs.Cancel) { 1074if (filterArgs.Cancel) { 1166if (eventArgs.Cancel) {
UI\WebParts\WebPartManager.cs (10)
331if (_allowEventCancellation && dmce.Cancel) { 951if (_allowEventCancellation && e.Cancel) { 1062if (_allowEventCancellation && ce.Cancel) { 1106if (_allowEventCancellation && ce.Cancel) { 1426if (_allowEventCancellation && ce.Cancel) { 1694if (_allowEventCancellation && ce.Cancel) { 2027if (_allowEventCancellation && ce.Cancel) { 2081if (_allowEventCancellation && ce.Cancel) { 2106if (_allowEventCancellation && ce.Cancel) { 3574if (_allowEventCancellation && e.Cancel) {
System.Web.Entity (5)
System\Data\WebControls\EntityDataSourceView.cs (5)
202if (selectArgs.Cancel) 561if (changingArgs.Cancel) 639if (changingArgs.Cancel) 701if (changingArgs.Cancel) 1222if (!disposeArgs.Cancel)
System.Web.Extensions (19)
UI\WebControls\LinqDataSourceView.cs (5)
472if (deleteEventArgs.Cancel) { 500if (!disposingEventArgs.Cancel) { 582if (selectEventArgs.Cancel) { 680if (insertEventArgs.Cancel) { 895if (updateEventArgs.Cancel) {
UI\WebControls\ListView.cs (14)
2163if (e.Cancel) { 2217if (e.Cancel) { 2272if (e.Cancel) { 2420if (e.Cancel) { 2465if (e.Cancel) { 2489if (e.Cancel) { 2555if (e.Cancel) { 2839if (IsDataBindingAutomatic == false && e.Cancel == false) { 2909if (IsDataBindingAutomatic == false && e.Cancel == false) { 2925if (IsDataBindingAutomatic == false && e.Cancel == false) { 2952if (IsDataBindingAutomatic == false && e.Cancel == false) { 2977if (IsDataBindingAutomatic == false && e.Cancel == false) { 3048if (IsDataBindingAutomatic == false && e.Cancel == false) { 3075if (IsDataBindingAutomatic == false && e.Cancel == false) {
System.Windows.Forms (56)
winforms\Managed\System\WinForms\Binding.cs (3)
962if (args.BindingCompleteState == BindingCompleteState.Success && args.Cancel == false) 965return args.Cancel; 1037return args.Cancel;
winforms\Managed\System\WinForms\Control.cs (2)
1915this.ValidationCancelled = ev.Cancel ; 7926return ev.Cancel;
winforms\Managed\System\WinForms\Control.Ime.cs (1)
714if( !e.Cancel ) {
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (2)
1552else if (dgvdee.Cancel) 1607return !e.Cancel;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (14)
2641if (dgvcce.Cancel) 3085if (dgvdee.Cancel) 3780if (dgvdee.Cancel) 4009if (dgvdee.Cancel) 4021if (dgvdee.Cancel) 5469if (dgvrce.Cancel) 6226if (dgvdee.Cancel) 6237if (dgvdee.Cancel) 9881return !dgvdee.Cancel; 9923return !dgvdee.Cancel; 13508return dgvcfvce.Cancel; 19260if (!dgvcce.Cancel) 19274return dgvcce.Cancel; 20490if (!dgvrce.Cancel)
winforms\Managed\System\WinForms\FileDialog.cs (2)
649ok = !ceevent.Cancel; 655ok = !ceevent.Cancel;
winforms\Managed\System\WinForms\FileDialog_Vista.cs (2)
176ok = !ceevent.Cancel; 183ok = !ceevent.Cancel;
winforms\Managed\System\WinForms\Form.cs (11)
3521if (e.Cancel) 5489if (fce.Cancel) { 5498return e.Cancel; 7025FormClosingEventArgs fe = new FormClosingEventArgs(CloseReason.MdiFormClosing, e.Cancel); 7030if (fe.Cancel) { 7048FormClosingEventArgs cfe = new FormClosingEventArgs(CloseReason.FormOwnerClosing, e.Cancel); 7052if (cfe.Cancel) { 7065m.Result = (IntPtr)(e.Cancel ? 0 : 1); 7067else if (e.Cancel && (MdiParent != null)) { 7085if (!e.Cancel) { 7434if (e.Cancel == true) {
winforms\Managed\System\WinForms\ListView.cs (3)
5556m.Result = (IntPtr) (colWidthChanging.Cancel ? 1 : 0); 5557if (colWidthChanging.Cancel) { 5675if (chrevent.Cancel) {
winforms\Managed\System\WinForms\SplitContainer.cs (2)
1184if (se.Cancel) { 1288if (se.Cancel) {
winforms\Managed\System\WinForms\TabControl.cs (4)
2073if (!tcc.Cancel) { 2082return tcc.Cancel; 2115if (!tcc.Cancel) { 2118return tcc.Cancel;
winforms\Managed\System\WinForms\ToolStrip.cs (1)
2800if (!cae.Cancel) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1817openingEventCancelled = openEventArgs.Cancel; 1883if (!e.Cancel || IsRestrictedWindow /*delay evaluate only in the case we need it*/) {
winforms\Managed\System\WinForms\ToolTip.cs (1)
2342if (e.Cancel) {
winforms\Managed\System\WinForms\TreeNode.cs (1)
1381if (!e.Cancel) {
winforms\Managed\System\WinForms\TreeView.cs (3)
1803return (tvce.Cancel); 2503return (IntPtr)(e.Cancel? 1: 0); 2553return (IntPtr)(e.Cancel? 1: 0);
winforms\Managed\System\WinForms\WebBrowser.cs (2)
1944cancel = e.Cancel; 1995cancel = e.Cancel;
System.WorkflowServices (3)
System\Workflow\Activities\Design\OperationPickerDialog.cs (1)
237if (cancelEventArgs.Cancel)
System\Workflow\Activities\Design\ServiceContractDetailViewControl.cs (1)
60if (e.Cancel)
System\Workflow\Activities\Design\ServiceOperationDetailViewControl.cs (1)
352if (e.Cancel)