I have a C# class that is loopig through all the rows of an Excel file. For each row I raise an event. The process in started in a WinFoms app, and in the form I trap the event. I have a progress bar on the form. I kick off the process in the Shown event so it doesn't start before the form is up.
I'm calling this:
private void _ImportProcs_RowImported(object sender, RowImportedEventArgs e)
{
_ShowMessage("Imported row " + e.Row.ToString() + " of " + e.MaxRows.ToString());
progressBar1.PerformStep(); // Step us 1
this.Refresh();
}
Problem is, the status bar isn't refreshing. What's the right way to do this???
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people