title: how to use WebBrowserReadyState for Gecko webbrowser in C# .Net
body: <p>How to use <strong>"WebBrowserReadyState"</strong> for <strong>"Gecko webbrowser"</strong> or how to wait till it loads web page completely.</p>
  
  <p>i am trying to make a web page reloader that should reload a web page after it loads completely.</p>
  
  <p>i have achieved this task by using <strong>"default .net webbeowser component"</strong> but i want to use <strong>"gecko webbrowser component"</strong> instead of <strong>"default webbrowser component"</strong> but i don't know how to use <strong>"WebBrowserReadyState"</strong> for <strong>"Gecko webbrowser component"</strong></p>
  
  <p><strong>below is my code that worked for default webbrowser component:</strong></p>
  
  <pre><code>webBrowser1.Navigate(textBox1.Text);
  while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
      {
          Application.DoEvents();
  while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
             {
                 webBrowser1.Navigate(textBox1.Text);
             }
      }
  </code></pre>
  
  <p>please tell me how to use <strong>"webBrowserReadyState.Complete for Gecko"</strong> because this code don't work for Gecko</p>