Reflection .NET API
Attachmate.Reflection Assembly / Attachmate.Reflection.UserInterface Namespace / IView Interface / Closing Event


Closing Event (IView)
Occurs when the view is about to close. The event handler can cancel the closing by setting the Cancel property of the event argument to true.
Syntax
'Declaration
 
<SuppressMessageAttribute("Microsoft.Design", "CA1009:DeclareEventHandlersCorrectly")>
Event Closing As CancelableEventHandler
 
'Usage
 
Dim instance As IView
Dim handler As CancelableEventHandler
 
AddHandler instance.Closing, handler
Event Data

The event handler receives an argument of type CancelableEventArgs containing data related to this event. The following CancelableEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets the Cancel property. Set the Cancel property to true the event.  
See Also