// Must hold a reference to the solution events object or the events wont // fire, garbage collection related msolutionEvents = mdte.Events.SolutionEvents; msolutionEvents.Opened += SolutionOpened; msolutionEvents.AfterClosing += SolutionAfterClosing; // Most of the events you'll find useful are catagoried under // DTE.Events...