Raises the Cancelling event when the user requests to close the form.

Namespace: System.Extensions.Windows.Forms
Assembly: System.Extensions (in System.Extensions.dll) Version: 0.0.0.5 (0.0.0.5)

Syntax

C#
protected virtual void OnCancelling(
	CancelEventArgs e
)
Visual Basic
Protected Overridable Sub OnCancelling ( 
	e As CancelEventArgs
)
Visual C++
protected:
virtual void OnCancelling(
	CancelEventArgs^ e
)
F#
abstract OnCancelling : 
        e : CancelEventArgs -> unit 
override OnCancelling : 
        e : CancelEventArgs -> unit 

Parameters

e
Type: System.ComponentModel..::..CancelEventArgs
EventArgs of the event.

See Also