Updating UI from long-running process without dealing with threading
Quick tidbit learned in instructor-led class - Application.DoEvents() will cause UI to be updated. You can call this in the middle of a long-running process. For example, if I am going to process a bunch of data, and want to update status/progress information, the "cheaters" way to do it is to update these controls during the process, and then call Application.DoEvents() to fire the UI events so that the updates are visible. Otherwise, the UI isn't updated until the long-running process completes - which is kind of pointless. Of course, the right way to do this is with worker threads and Control.Invoke...