This documentation is archived and is not being maintained.

WindowEventsClass.WindowClosing Event

This event 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)

public virtual event _dispWindowEvents_WindowClosingEventHandler _dispWindowEvents_Event.WindowClosing
J# supports the use of explicit interface implementations, but not the declaration of new ones.
JScript supports the use of events, but not the declaration of new ones.

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