I have a window form containing a richtextbox. Upon button click event, as the process under this button click event takes time, i wanna display progressing messages in richtextbox. Like on every 500 records updates, i wanna display “500 records updated” and then “1000 records updated”, and so on.
Right now, my messages display only when process is finished. :(.
You’ll need to use a thread to perform your processing and post a message back to the UI thread to update the progress bar.
Look into the BackgroundWorkerThread class.
There are also quite a few questions on threading and its associated pitfalls here on Stack Overflow.