WindowEventsClass.WindowActivated Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.