title: "This BackgroundWorker states that it doesn't report progress." - Why?
body: <p>i am new to this backgroundworker thing<br>
  i have read some articles about how to create one<br>
  this is what it produced  </p>
  
  <pre><code>    private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
      {
          Bitmap imgbox = new Bitmap(pictureBox.Image);
  
          int imgHeight = imgbox.Height;
          int imgWidth = imgbox.Width;
  
          int counter = 1;
  
          MinMaxWidth = imgWidth - 50;
          MaxWidth = imgWidth;
  
          try
          {
              Color c;
              //Color c2;
  
              for (int i = 0; i &lt; imgbox.Width; i++)
              {
                  for (int j = 0; j &lt; imgbox.Height; j++)
                  {
                      c = imgbox.GetPixel(i, j);
                      string cn = c.Name;
                      counter++;
                      backgroundWorker1.ReportProgress(counter);
                  }
              }
              MessageBox.Show("SUCESSFULLY DONE");
          }
          catch (Exception ex) { MessageBox.Show(ex.Message); }
      }
  
      private void backgroundWorker1_ProgressChanged(object sender, ProgressChangedEventArgs e)
      {
          MyProgress.Value = e.ProgressPercentage;
      }
  </code></pre>
  
  <p>but when i started the DoWork event. this error showed up  </p>
  
  <blockquote>
    <p>This <code>BackgroundWorker</code> states that it doesn't report progress.<br />
      Modify <code>WorkerReportsProgess</code> to state that it does report progress.</p>
  </blockquote>
  
  <p>ijust follow what the tutorial says<br>
  what would be the problem?, is there something that i forgot?</p>