Udostępnij za pośrednictwem


WindowEventsClass.WindowCreated Event

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

Occurs when a new window is created.

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

Syntax

'Declaration
Public Overridable Event WindowCreated As _dispWindowEvents_WindowCreatedEventHandler
'Usage
Dim instance As WindowEventsClass 
Dim handler As _dispWindowEvents_WindowCreatedEventHandler 

AddHandler instance.WindowCreated, handler
public virtual event _dispWindowEvents_WindowCreatedEventHandler WindowCreated
public:
virtual   event _dispWindowEvents_WindowCreatedEventHandler^ WindowCreated {
    void add (_dispWindowEvents_WindowCreatedEventHandler^ value);
    void remove (_dispWindowEvents_WindowCreatedEventHandler^ value);
}
JScript does not support events.

Implements

_dispWindowEvents_Event.WindowCreated

Examples

Public Sub WindowEvents_WindowCreated(ByVal Window As EnvDTE.Window) Handles WindowEvents.WindowCreated
   MsgBox("test")
End Sub

.NET Framework Security

See Also

Reference

WindowEventsClass Class

WindowEventsClass Members

EnvDTE Namespace