Compartir a través de


WindowEventsClass.WindowActivated (Evento)

Esta API es compatible con la infraestructura de .NET Framework y no está diseñada para utilizarse directamente desde el código.

Se produce cuando una ventana recibe el foco.

Espacio de nombres:  EnvDTE
Ensamblado:  EnvDTE (en EnvDTE.dll)

Sintaxis

'Declaración
Public Overridable Event WindowActivated As _dispWindowEvents_WindowActivatedEventHandler
public virtual event _dispWindowEvents_WindowActivatedEventHandler WindowActivated
public:
virtual   event _dispWindowEvents_WindowActivatedEventHandler^ WindowActivated {
    void add (_dispWindowEvents_WindowActivatedEventHandler^ value);
    void remove (_dispWindowEvents_WindowActivatedEventHandler^ value);
}
abstract WindowActivated : IEvent<_dispWindowEvents_WindowActivatedEventHandler,
    EventArgs>
override WindowActivated : IEvent<_dispWindowEvents_WindowActivatedEventHandler,
    EventArgs>
JScript no admite eventos.

Implementaciones

_dispWindowEvents_Event.WindowActivated

Comentarios

El evento WindowActivated no se produce hasta que el entorno está totalmente inicializado, por lo que la primera ventana no recibe el foco durante el inicio del entorno.

Ejemplos

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

Seguridad de .NET Framework

Vea también

Referencia

WindowEventsClass Clase

EnvDTE (Espacio de nombres)