title: Wait until page is fully loaded using InternetExplorer Object from SHDocVw in C#?
body: <p>How can the code wait until the webpage is fully loaded using the <code>InternetExplorer</code> Object from <code>SHDocVw</code>. in C#???</p>
  
  <p>thank you very much</p>
  
  <p>My code:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  using System.Windows.Forms;
  using SHDocVw;
  using mshtml;
  
  namespace TTD_2
  {
      class Program
      {
          static void Main(string[] args)
          {
  
              InternetExplorer webBrowser1 = new InternetExplorer();
  
              webBrowser1.Visible = true;
  
              object mVal = System.Reflection.Missing.Value;
              webBrowser1.Navigate("https://xxxxxxx.xxx", ref mVal, ref mVal, ref mVal, ref mVal);
  
  
              // rest of the code
  
              // Closing the Internet Explorer Window
              //webBrowser1.Quit();
          }
      }
  }
  </code></pre>