title: C# Label text not updating while Progress bar value is
body: <p>In C# im trying to make a little game type program and im trying to make a loading bar that uses the Progress bar and the text is using a Label, for example the Progress bar is 1 - 25 and i want the label text to update while the bar is, heres an example:
  <br></p>
  
  <pre><code>    private void StartLoading_Click(object sender, EventArgs e)
      {
          MainProgressBar.Maximum = 25;
          int P = 0;
          while (P &lt; 25)
          {
              // Delay
              System.Threading.Thread.Sleep(130);
              // Increase Progress
              P++;
              // Set Progress Bar Value
              MainProgressBar.Value = P;
              // Set Text Above Progress Bar
              LoadingText.Text = P + "/25";
          }
      }
  </code></pre>
  
  <p>Ps. I dont want some Huge code, i want it to be simple like this</p>