“This BackgroundWorker states that it doesn't report progress.” - Why?
i am new to this backgroundworker thing i have read some articles about how to create one this is what it produced 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 < imgbox.Width; i++) { for (int j = 0; j < imgbox.Height; j++) { c = imgbox.GetPixel(i, j); string cn = c.Name; counter++; backgroundWorker1.ReportProgress(counter); } } MessageBox.Show(