title: use of progress bar in winforms
body: <p>i simply want that the progress bar progresses a single step , as the timer ticks up one second, but couldn't do it. please help.</p>
  
  <p>shall i use a variable , i , and increment i by 1, in the tick event of the timer.
  and write : progressBar1.Increment(i)  --i tried this and it worked. </p>
  
  <p>but why isn't it working with the following code:</p>
  
  <pre><code>public partial class Form1 : Form
  {
      Timer t = new Timer();
  
      public Form1()
      {
          InitializeComponent();
  
      }
  
      private void Form1_Load(object sender, EventArgs e)
      {
          t.Interval = 1000;
          t.Enabled = true;
          t.Tick += new EventHandler(t_Tick);
      }
      void t_Tick(object sender, EventArgs e)
      {
          progressBar1.Increment(1);
      }
  </code></pre>
  
  <p>as one second passes, the tick event occurs, and the progressBar should increment by 1, but here, its just stuck up only at a single increment, i.e. it progresses only by 1 and stops.</p>