Tools Reference (Visual Studio Tools for Office)
AddIn.Startup Event

Occurs when the add-in is loaded, after all the initialization code in the assembly has run.

Namespace: Microsoft.Office.Tools
Assembly: Microsoft.Office.Tools.Common (in microsoft.office.tools.common.dll)

Syntax

Visual Basic (Declaration)
Public Event Startup As EventHandler
Visual Basic (Usage)
Dim instance As AddIn
Dim handler As EventHandler

AddHandler instance.Startup, handler
C#
public event EventHandler Startup
Remarks

Use the default Startup event handler in the ThisAddIn class, instead of creating your own event handler for this event. The default Startup event handler is named ThisAddIn_Startup.

For more information, see Visual Studio Tools for Office Events. For more information about the ThisAddIn class, see Getting Started Programming Application-Level Add-ins.

See Also

Page view tracker