WindowEventsClass.WindowClosing Event

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Occurs just before a window closes.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

Syntax

'Declaration
Public Overridable Event WindowClosing As _dispWindowEvents_WindowClosingEventHandler
'Usage
Dim instance As WindowEventsClass 
Dim handler As _dispWindowEvents_WindowClosingEventHandler 

AddHandler instance.WindowClosing, handler
public virtual event _dispWindowEvents_WindowClosingEventHandler WindowClosing
public:
virtual   event _dispWindowEvents_WindowClosingEventHandler^ WindowClosing {
    void add (_dispWindowEvents_WindowClosingEventHandler^ value);
    void remove (_dispWindowEvents_WindowClosingEventHandler^ value);
}
JScript does not support events.

Implements

_dispWindowEvents_Event.WindowClosing

Examples

Public Sub WindowEvents_WindowClosing(ByVal Window As EnvDTE.Window) Handles WindowEvents.WindowClosing
   MsgBox("test")
End Sub

.NET Framework Security

See Also

Reference

WindowEventsClass Class

WindowEventsClass Members

EnvDTE Namespace