title: Outlook add-in C Sharp: While loop question
body: <p>I'm writing a quick little add-in for Outlook that will check my email every x minutes and process the messages. This is my first add-in so I'm a little unsure of the order of runtime events, but the problem I'm having is that I'm using a while loop with a sleeper on my addin load event, which causes outlook to never fully open.</p>
  
  <pre><code>private void ThisAddIn_Startup(object sender, System.EventArgs e)
  {
      while (true)
      {
          CheckMail();
          System.Threading.Thread.Sleep(100000);
      }
  }
  </code></pre>
  
  <p>Is there a way I can fully open Outlook before executing this loop?</p>