title: How to get a reference to Internet Explorer's window handle in .net
body: <p>Basically I am trying to get the HWND of an instance of Internet Explorer that I have been automating in C#.</p>
  
  <pre><code>        SHDocVw.InternetExplorer IE = new SHDocVw.InternetExplorer();
          IE.AddressBar = false;
          IE.MenuBar = false;
          IE.OnQuit += IE_OnQuit;
          IE.Visible = true;
          IE.Navigate2("www.bing.com");
  </code></pre>
  
  <p>I would like to get a reference to it's window handle for further manipulation, however the only example of how to do this is in C++ and I am not sure how to do something similar in C#. The Example the msdn gave is <a href="https://msdn.microsoft.com/en-us/library/aa752126(v=vs.85).aspx" rel="nofollow noreferrer">here</a>.</p>