title: Visual Basic 2008 - New Form on a different thread
body: <p>My “form1” is just a simple page with buttons that launch different forms which do all the work, the "form1" code for the first four buttons is below.  </p>
  
  <p>What I want is for each form to run in a separate thread.</p>
  
  <pre><code>Public Class Main
      Private Sub btnDownLoadStockPrices_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDownLoadStockPrices.Click
          LoadStocksFromDownloadSite.Visible = True
      End Sub
  
      Private Sub btnLoadOptionsIntoDatabase_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnLoadOptionsIntoDatabase.Click
          LoadOptionsIntoDatabase.Visible = True
      End Sub
  
      Private Sub btnVerifyDatabases_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnVerifyDatabases.Click
          VerifyDatabase.Visible = True
      End Sub
  
      Private Sub btnAnalyzeStock_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAnalyzeStock.Click
          AnalyzeSingleStock.visible = True
      End Sub
  End Class
  </code></pre>
  
  <p>I’ve found plenty of code examples to have different buttons on a single form run a subroutine in a separate thread, but for some reason I can’t seem to apply it to an entire form.</p>
  
  <p>I think it’s something simple, like I need to tie each new thread as a handle to each forms “load” routine, but I just can’t get it to work. I don’t care about “synchronizing” threads at all, as each form is really a completely different functional program.</p>
  
  <p>Any help would be much appriciated!</p>