I am creating an add in for Microsoft Excel using Visual C#. When I first created the solution, it included a function called ThisAddIn_Startup. I added the following code to
Nothing is magic and ThisAddIn_Startup
is called by something before executing your MessageBox.Show
instruction.
You can use "Find All References" in Visual Studio, it will bring you to ThisAddin.InternalStartup()
, a private method in ThisAddin.cs
.
This method is called by the framework's runtime.
Did this explanation help?