WindowEventsClass::WindowActivated Event
Visual Studio 2015
This API supports the product infrastructure and is not intended to be used directly from your code.
Occurs when a window receives the focus.
Assembly: EnvDTE (in EnvDTE.dll)
public: event _dispWindowEvents_WindowActivatedEventHandler^ WindowActivated { virtual void add(_dispWindowEvents_WindowActivatedEventHandler^ value); virtual void remove(_dispWindowEvents_WindowActivatedEventHandler^ value); }
Implements
_dispWindowEvents_Event::WindowActivatedWindowActivated does not occur until the environment is completely initialized, and it does not occur with the first window to receive focus during startup of the environment.
Public Sub WindowEvents_WindowActivated(ByVal GotFocus As EnvDTE.Window, ByVal LostFocus As EnvDTE.Window) Handles WindowEvents.WindowActivated MsgBox("test") End Sub
Show: