I was looking for a way for some text to appear before and after some data processing was taking place. I was using Application.DoEvents so the text would change at each step but I read this is a bad technique. Why is this so bad and what would be the proper technique?
private void btnScrub_Arrest_Click(object sender, EventArgs e)
lblProcessing.Text = "Processing starting ... please wait.";
Scrub_Arrest_File(); /* Read input csv file, insert records into SQL table */
Output_CSV_File(); /* Extract full dataset out of SQL and write required fields to output csv files */
lblProcessing.Text = "Processing complete ... please click Exit.";