title: Program not responding when installed
body: <p>I've written a little tool to run a large amount of queries against a database and, when running it from Visual Studio, the application works great. The progress bar progresses and everything goes considerably smooth.</p>
  
  <p>When I install the program on my Windows 10 machine and run the queries, however, the form stops responding.</p>
  
  <p>The code runs single threaded so my question is: Why does the form update the progress bar when running on Visual Studio and why does it not respond when installed?</p>
  
  <p>I'm not really sure how to fix this as the code is the exact same on both instances. Did I configure the installer incorrectly?</p>
  
  <pre><code>using (var command = new SqlCommand(commandText, connection))
  {
      command.CommandType = System.Data.CommandType.Text;
      command.ExecuteNonQuery();
      progressBar.PerformStep();
  }
  </code></pre>
  
  <p>I expected the program to behave the same whether running on Visual Studio or installed locally but it does not.</p>