title: How to clear browsing history using WebBrowser control in C#
body: <p>I want to clear the browsing history of a <code>WebBrowser</code> control in C# after the  <code>WebBrowser</code> completes its browsing.</p>
  
  <p>This is my code:</p>
  
  <pre><code>try
  {
      foreach (string sr in File.ReadAllLines("link.txt"))
      {
          webBrowser1.Navigate(sr);
          webBrowser1.ScriptErrorsSuppressed = true;
      }
      while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
      {
          Application.DoEvents();
      }                               
  }
  catch(Exception)
  {
      MessageBox.Show("Internet Connection not found","Error",MessageBoxButtons.OK,MessageBoxIcon.Error);
      this.Close();
  }
  </code></pre>