Capture window close event
- by -providergordienko.vladimir
I want to capture events that close editor window (tab) in Visual Studio 2008 IDE.
When I use
dte2.Application.Events.get_CommandEvents(null, 0).BeforeExecute
I successfully captured such events:
File.Close
File.CloseAllButThis
File.Exit
Window.CloseDocumentWindow
and others.
If code in window is not acceptable, I stop the event…