WindowEventsClass.WindowActivated Event

Definition

Occurs when a window receives the focus.

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

public:
 virtual event EnvDTE::_dispWindowEvents_WindowActivatedEventHandler ^ WindowActivated;
public:
 virtual event EnvDTE::_dispWindowEvents_WindowActivatedEventHandler ^ WindowActivated;
public virtual event EnvDTE._dispWindowEvents_WindowActivatedEventHandler WindowActivated;
member this.WindowActivated : EnvDTE._dispWindowEvents_WindowActivatedEventHandler 
Public Overridable Custom Event WindowActivated As _dispWindowEvents_WindowActivatedEventHandler Implements WindowActivated

Event Type

Implements

Examples

Public Sub WindowEvents_WindowActivated(ByVal GotFocus As EnvDTE.Window, ByVal LostFocus As EnvDTE.Window) Handles WindowEvents.WindowActivated  
   MsgBox("test")  
End Sub  

Remarks

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.

Applies to