ProTech's home page

ProTech-Online.com

This is a C# code example of a Outlook 2010 Add-in ThisAddIn_Startup.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Outlook = Microsoft.Office.Interop.Outlook;
using Office = Microsoft.Office.Core;
using Microsoft.Win32;
using System.Security.AccessControl;
using System.Windows.Forms;
namespace ChadSytelineOutlookAddIn
{
    public partial class ThisAddIn
    {
        public string username;
        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
            username = Environment.UserDomainName + "/" + Environment.UserName;
        }
        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
        }
        protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
        {
            return new ChadRibbon();
        }
        #region VSTO generated code
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup()
        {
            this.Startup += new System.EventHandler(ThisAddIn_Startup);
            this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
        }
        #endregion
    }
}


Copyright © 2013 ProTechs-Online.com; All rights reserved.