title: C# Windows form application is locked during runtime
body: <p>I'm new to C# and i have a problem ... when i run my windows form application and press start button, during runtime i can't do anything with the form (close, minimize, move, ...) but when it's done i can close the form.<br>
  What should i do to solve it?  </p>
  
  <p><a href="https://i.stack.imgur.com/FTYrS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FTYrS.jpg" alt="enter image description here"></a></p>
  
  <pre><code>using System;
  using System.Threading;
  using System.Windows.Forms;
  
  
  namespace WindowsFormsApplication10
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
              InitializeComponent();
          }
  
  
  
          private void c1Button1_Click(object sender, EventArgs e)
          {
              for ( int i = 0; i &lt; 100; i++)
              {
  
                  c1RadialGauge1.Value = i;
                  textBox1.Text = i.ToString();
                  textBox1.Update();
                  c1Gauge1.Refresh();
                  Thread.Sleep(100);
  
              }
  
          }
      }
  }
  </code></pre>