title: How can I set ProgressBar and other command to start simultaneously?
body: <p>I write below code in click event of one button, and want ProgressBar &amp; <code>for</code> loops start working together simultaneously. So at first I started <code>timer1</code></p>
  
  <pre><code>private void Button_Click(object sender, EventArgs e)
  {
      this.timer1.Start();
  
      if (comboBox.SelectedIndex == 0)
      {
          TextBox.Clear();
          for (int j = 0; j &lt; N; j++)
              for (int i = 0; i &lt; N; i++)
              {
                  TextBox.Text += array[i, j].ToString()+" , " ;
              }               
      }
  }
  </code></pre>
  
  <p>But when I click button, first TextBox start to fill( <code>for</code> loops work), then the timer1 start to work and ProgressBar start to incrementing.</p>
  
  <p>I use Visual Studio 2010, Windows Forms application and write bottom code for <code>timer1</code>:</p>
  
  <pre><code>private void timer1_Tick(object sender, EventArgs e)
  {
      this.ProgressBar.Increment(1);
  }
  </code></pre>
  
  <p>Can every body tell how can I set them to start and work simultaneously?</p>