I\'ve got a c# windows form app I threw together. It\'s fairly simple:\\
inputs:
If you use a background worker you can use the ReportProgress method to return any integer, such as the number of records processed. It doesn't have to be a percentage. Then, in the ProgressChanged handler you can update your textbox. E.g.
int count = e.ProgressPercentage;
textBox1.Text = string.Format("{0} images processed.", count);
If you don't want to use a background worker you can call Application.DoEvents() inside your loop. This will give the UI an opportunity to refresh itself and respond to user actions. But beware - it will slow your program a lot so you may want to call it only on every 100th iteration.