outlookvstooutlook-addinoutlook-object-model

Ready event in Microsoft Outlook 2010?


Is there an event in Microsoft Outlook 2010 which one can subscribe on, in order to known when Outlook has finished initializing and all components, folders etc. have been loaded?


Solution

  • Ok, I found out what I needed to do...

    ...
    
    private void ThisAddInStartup(object sender, EventArgs e)
    {
    
        this.Application.Startup += ApplicationStartup;
        this.Application.ItemLoad += ApplicationItemLoad;
    
     }
    
     void ApplicationItemLoad(object Item)
     {
         //Do something   
     }
    
     private void ApplicationStartup()
     {
         //Do something
     }
    
    ...
    

    http://msdn.microsoft.com/en-us/library/ff869298.aspx