title: Get Window Handle from Inspector
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5607807/open-event-of-window-and-handle-of-window">Open Event of Window and Handle of Window</a>  </p>
  </blockquote>
  
  
  
  <p>Hello all,</p>
  
  <p>How do I get a window handle (<code>IntPtr</code>) from the Outlook window I have just opened?</p>
  
  <pre><code>        OutLook.Items items = oFolder.Items;
  
          foreach (OutLook.MailItem mail in items)
          {
  
                mail.Display();
  
                //IntPtr a = (System.IntPtr)mail.GetInspector.Parent;
  </code></pre>
  
  <p>I am new to C sharp.</p>