title: Console application crashes after opening a web browser form because of a threadestate exception
body: <p>I am developing a console application that visualizes steam items that have been filtered by name by making an html file (I am making a steam trade bot).</p>
  
  <p>In one part of the program I call a Windows form that contains a web browser (my app is console application type) when the form load the web browser is set to navigate to google just for debuging, but i get this <a href="http://i.stack.imgur.com/8mv0I.png" rel="nofollow">error</a>.</p>
  
  <p>My console application:</p>
  
  <pre><code>[STAThread]
  public override void OnMessage(string message, EChatEntryType type)
  {
      switch(message)
      {
          ....
          case "!show":
          {
              Application.EnableVisualStyles();
              Application.Run(new Form1());
              break;
          }
      }
  }
  </code></pre>
  
  <p>and my form:</p>
  
  <pre><code>private void Navigate(String address)
  {
      if (String.IsNullOrEmpty(address)) return;
      if (address.Equals("about:blank")) return;
      if (!address.StartsWith("http://") &amp;&amp;
          !address.StartsWith("https://"))
      {
          address = "http://" + address;
      }
      try
      {
          webBrowser1.Navigate(new Uri(address));
      }
      catch (System.UriFormatException)
      {
          return;
      }
  }  
  private void Form1_Load(object sender, EventArgs e)
  {
      Navigate("google.com");
  }
  </code></pre>
  
  <p>I can't find a solution. I tried to make a new Thread but it didnt work.</p>