CancelEventArgs

CancelEventArgs

System.ComponentModel (system.dll) class

This class should be used as the base for classes that encapsulate the data for events that can be canceled .

It provides a Cancel property that can be set by the client of the event to indicate that the action that raised the event should be aborted.

 public class  CancelEventArgs  : EventArgs {  // Public Constructors  public  CancelEventArgs  ();    public  CancelEventArgs  (bool  cancel  );  // Public Instance Properties  public bool  Cancel  {set; get; } } 

Hierarchy

System.Object System.EventArgs CancelEventArgs

Subclasses

System.Drawing.Printing.PrintEventArgs , System.Windows.Forms.{InputLanguageChangingEventArgs , TreeViewCancelEventArgs}

Passed To

CancelEventHandler.{BeginInvoke() , Invoke()} , System.Windows.Forms.Control.OnValidating() , System.Windows.Forms.FileDialog.OnFileOk() , System.Windows.Forms.Form.OnClosing()



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net