title: adding a progress bar
body: <p>I have an a windows form application that use one class (its name is <code>Parser</code>)
  this form has a button and when i click on the windows form application button it call one of the parser class method . </p>
  
  <p>this method simply read text file line after line and write each line to separate file...</p>
  
  <p>i would like to add a progress bar to the form in order to show the progress( it is a very large file )</p>
  
  <p>any idea how to do that? I have in the Parse class 2 property one for the number of line in the file and the second how much lines already checked.</p>
  
  <p>here is my <code>button2_Click</code> function</p>
  
  <pre><code>private void button2_Click(object sender, EventArgs e)
  {
        if (this.textBox1 != null &amp; this.textBox2 != null)
        {
             inst.init(this.textBox1.Text, this.textBox2.Text);
             //this.progressBar1.Show();
  
             inst.ParseTheFile();
             System.Windows.Forms.MessageBox.Show("Parsing finish successfully"); 
         }
  }
  </code></pre>