c# Programming Glossary: e.cancel
Parent Control Mouse Enter/Leave Events With Child Controls http://stackoverflow.com/questions/1161280/parent-control-mouse-enter-leave-events-with-child-controls 
 How to wait for a BackgroundWorker to cancel? http://stackoverflow.com/questions/123661/how-to-wait-for-a-backgroundworker-to-cancel  void worker_DoWork object sender DoWorkEventArgs e while e.Cancel  do something _resetEvent.Set signal that worker is done   share.. 
 How to Disable Alt + F4 closing form? http://stackoverflow.com/questions/14943/how-to-disable-alt-f4-closing-form  Form1_FormClosing object sender FormClosingEventArgs e e.Cancel true Edit In response to pix0rs concern yes you are correct.. 
 How to start WinForm app minimized to tray? http://stackoverflow.com/questions/1730731/how-to-start-winform-app-minimized-to-tray  FormClosingEventArgs e if mAllowClose  this.Hide  e.Cancel true  base.OnFormClosing e private void showToolStripMenuItem_Click.. 
 How to stop BackgroundWorker on Form's Closing event? http://stackoverflow.com/questions/1731384/how-to-stop-backgroundworker-on-forms-closing-event  I know is to actually cancel the FormClosing event. Set e.Cancel true if the BGW is still running and set a flag to indicate.. backgroundWorker1.CancelAsync this.Enabled false e.Cancel true mClosePending true return base.OnFormClosing e void backgroundWorker1_RunWorkerCompleted.. 
 Avoid calling Invoke when the control is disposed http://stackoverflow.com/questions/1874728/avoid-calling-invoke-when-the-control-is-disposed  running before the list view disappears. Do so by setting e.Cancel in the FormClosing event and signaling the thread to stop with.. 
 Make a BackgroundWorker do several operations sequentially without freezing the form http://stackoverflow.com/questions/1902384/make-a-backgroundworker-do-several-operations-sequentially-without-freezing-the  s.args Environment.NewLine if worker.CancellationPending  e.Cancel true else  Process p new Process p.StartInfo.WorkingDirectory.. if e.Error null  MessageBox.Show e.Error.Message else if e.Cancelled  textBoxOutput.Text Environment.NewLine Annulé. else  textBoxOutput.Text.. 
 Disabling Minimize & Maximize On WinForm? http://stackoverflow.com/questions/3025923/disabling-minimize-maximize-on-winform  stop the form closing handle the FormClosing event and set e.Cancel true in there and after that set WindowState FormWindowState.Minimized.. 
 Handling the window closing event with WPF / MVVM Light Toolkit http://stackoverflow.com/questions/3683450/handling-the-window-closing-event-with-wpf-mvvm-light-toolkit  object sender CancelEventArgs e  Handle closing logic set e.Cancel as needed In this case you gain exactly nothing except complexity.. 
 Fading out a window http://stackoverflow.com/questions/5958508/fading-out-a-window  object sender CancelEventArgs e Closing Window_Closing e.Cancel true var anim new DoubleAnimation 0 Duration TimeSpan.FromSeconds.. 
 Determine list of event handlers bound to event http://stackoverflow.com/questions/660480/determine-list-of-event-handlers-bound-to-event   I have a WinForms form that won't close. In OnFormClosing e.Cancel is set to true. I am guessing that some object in my application.. 
 ObservableCollection Doesn't support AddRange method, so I get notified for each item added, besides what about INotifyCollectionChanging? http://stackoverflow.com/questions/670577/observablecollection-doesnt-support-addrange-method-so-i-get-notified-for-each  collection OnCollectionChanging ce If ce.Cancel Then Exit Sub Dim index Items.Count 1 For Each i In collection.. Collection OnCollectionChanging ce If ce.Cancel Then Exit Sub For Each i In Collection Items.Insert index i.. collection OnCollectionChanging ce If ce.Cancel Then Exit Sub For Each i In collection Items.Remove i Next OnCollectionChanged.. 
 Download file and automatically save it to folder http://stackoverflow.com/questions/6773866/download-file-and-automatically-save-it-to-folder  object sender WebBrowserNavigatingEventArgs e e.Cancel true string filepath null filepath textBox1.Text WebClient client.. object sender WebBrowserNavigatingEventArgs e  e.Cancel true WebClient client new WebClient client.DownloadDataCompleted.. 
 No type inference with generic extension method http://stackoverflow.com/questions/7171067/no-type-inference-with-generic-extension-method  Fire.Event EventName.With sender eventArgs .Until e e.Cancel Fire.Event EventName.Until e e.Cancel .With sender eventArgs.. eventArgs .Until e e.Cancel Fire.Event EventName.Until e e.Cancel .With sender eventArgs The following would be invalid no sender.. i.e. missing call to With ... Fire.Event EventName.Until e e.Cancel To make this work there exist extension methods named With that.. 
 How to “kill” background worker completely? http://stackoverflow.com/questions/800767/how-to-kill-background-worker-completely  try  base.OnDoWork e  catch ThreadAbortException  e.Cancel true We must set Cancel property to true Thread.ResetAbort Prevents.. 
 Fading out a wpf window on close http://stackoverflow.com/questions/867656/fading-out-a-wpf-window-on-close  e if closeStoryBoardCompleted  closeStoryBoard.Begin e.Cancel true private void closeStoryBoard_Completed object sender EventArgs.. 
 
 
     
      |