WindowEventsClass::WindowActivated Event

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Occurs when a window receives the focus.

Namespace:   EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

public:
event _dispWindowEvents_WindowActivatedEventHandler^ WindowActivated {
	virtual void add(_dispWindowEvents_WindowActivatedEventHandler^ value);
	virtual void remove(_dispWindowEvents_WindowActivatedEventHandler^ value);
}

WindowActivated 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
Return to top
Show: