title: How do I update the progress bar one step, every loop cycle? C#
body: <p>Creating a .net application in C#, windows forms. How do I update the progress bar 1 step every cycle of a 100 cycle loop?
  (I’m processing an excel sheet in the loop.)
  The progress bar controls are in the UI class which connects to the controller class which connects to a custom class 
  (MVC pattern). The loop is in the custom class.
  Do I need to send the UI class instance all the way down in each method or is there a better way?</p>
  
  <p>Right now the progress bar updates after the loop finishes. Application.doevents and .update or .refresh don’t work.</p>