DTEEventsClass::ModeChanged Event
Visual Studio 2015
This API supports the product infrastructure and is not intended to be used directly from your code.
Occurs when the mode of the development environment (build, run, or debug) is changed.
Assembly: EnvDTE (in EnvDTE.dll)
public: event _dispDTEEvents_ModeChangedEventHandler^ ModeChanged { virtual void add(_dispDTEEvents_ModeChangedEventHandler^ value); virtual void remove(_dispDTEEvents_ModeChangedEventHandler^ value); }
Implements
_dispDTEEvents_Event::ModeChangedThe LastMode parameter is a vsIDEMode constant specifying the previous mode the environment was in, either vsIDEModeDebug or vsIDEModeDesign.
If, for example, the IDE was last in Debug mode but is now in Design mode, the value of LastMode would be vsIDEModeDebug.
Public Sub DTEEvents_ModeChanged(ByVal LastMode As EnvDTE.vsIDEMode) Handles DTEEvents.ModeChanged MsgBox("The IDE mode has changed.") End Sub
Show: