Thanks for looking.
I am developing an Outlook plugin that needs to prompt the user to log in upon loading of Outlook. I am currently accomplishing this by hooking into the Startup
event of ThisAddIn
.
Problem
Unfortunately, the log in dialog is displaying before Outlook is fully loaded so it appears to the user as if Outlook is not loading and they are being forced to log in for the plugin.
Question
Is there an event that can be subscribed to from within my plugin code that will only fire after Outlook has fully loaded and is being displayed to the user?
Related links
Ready event in Microsoft Outlook 2010? (The answer regarding use of StartupComplete
event via IDTExtensibility2
looks promising but I am not sure how to implement it. Any advice there is appreciated as well.)
I have tried. . .
I have tried the following but this causes the dialog to launch too soon:
private void InternalStartup()
{
this.Startup += new System.EventHandler(ThisAddIn_Startup);
this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
}
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
//Fire 3rd party code to launch log-in dialog here
}