Hi Everyone.

I have a progress bar on a form. I want to have a continous progress bar while an operation is being performed. I would like to tie this to a button click event. I have posted the code below. Please let me know what i am doing wrong.

Button Code:
  1. private void btnFindLabels_Click(object sender, EventArgs e)
  2.         {
  3.            
  4.            
  5.             this.ProgressBar.Style = ProgressBarStyle.Marquee;
  6.             this.ProgressBar.MarqueeAnimationSpeed = 100;
  7.  
  8.             //this.ProgressBar.Maximum = myfile.Length;
  9.             //this.ProgressBar.Minimum = 1;
  10.             //this.ProgressBar.Step = (myfile.Length / 100);
  11.            
  12.          
  13.         }

Thanks in advance