title: How to implement a cancel event in C#
body: <p>I know that in C#, there are several built in events that pass a parameter ("Cancel") which if set to <b>true</b> will stop further execution in the object that raised the event.</p>
  
  <p>How would you implement an event where the raising object was able to keep track of a property in the EventArgs?</p>
  
  <p>Here is a WinForms example of what I am trying to do: <br/><a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.canceleventargs.cancel.aspx" rel="noreferrer"><a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.canceleventargs.cancel.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/system.componentmodel.canceleventargs.cancel.aspx</a></a></p>
  
  <p>Thank you.</p>