In my app, I read/parse data that takes some time. While that process is going on I want to display a message on screen indicating the process going on. I beileve I got to use Thread for it, but don’t get an idea how to use and implement it.The calling method may throw exception or so.
Any idea/tip on how to achieve the task. Any help is highly appreciated.
Thanks
I’ll assume that you’re using .Net.
You should use the BackgroundWorker component.
Perform your operation in its
DoWorkevent (which runs on a background thread), callReportProgressto post messages for the UI, and handleProgressChangedandRunWorkerCompletedto update the UI.