IVstaHostAdapter.ActivateProjectHostItem Event

Occurs when a host item is activated.

Namespace:  Microsoft.VisualStudio.Tools.Applications.DesignTime.Interop
Assembly:  Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0 (in Microsoft.VisualStudio.Tools.Applications.DesignTime.v9.0.dll)

Syntax

'Declaration
Event ActivateProjectHostItem As ActivateProjectHostItemEventHandler
'Usage
Dim instance As IVstaHostAdapter 
Dim handler As ActivateProjectHostItemEventHandler 

AddHandler instance.ActivateProjectHostItem, handler
event ActivateProjectHostItemEventHandler ActivateProjectHostItem
event ActivateProjectHostItemEventHandler^ ActivateProjectHostItem {
    void add (ActivateProjectHostItemEventHandler^ value);
    void remove (ActivateProjectHostItemEventHandler^ value);
}
JScript does not support events.

Remarks

This event is raised when you double-click the host item node in Project Explorer, or when you right-click the host item node and then click View Designer.

The ActivateProjectHostItem event is not raised when you right-click the host item node and then click View Code.

ActivateProjectHostItem does not apply to project items that are not host items.

.NET Framework Security

See Also

Reference

IVstaHostAdapter Interface

IVstaHostAdapter Members

Microsoft.VisualStudio.Tools.Applications.DesignTime.Interop Namespace