What is the best way to update a label on a Windows Forms application while processing?
I have a loop that does some processing to files on the user\'s system when t
You should be doing this on another thread, and then updating your UI thread from that thread. You are blocking further processing by performing this work on the UI thread.
If you can't move this code to the UI thread, then you could always call Application.DoEvents, but I strongly suggest you explore these options first: