I am developing a desktop application for pdf file management using C#.
When I search any folder for *.pdf the application stops responding for some time, which is undesired behavior.
I am using XmlWriter to write data (i.e. file name,author name,subject). Also I have a label to show current scanning of file but it only show last file after complition of scanning.
In addition to Haedrian’s answer, I’d say that you could use the
ProgressChangedevent ofBackGroundWorkerto handle updating your progress indicators.More specifically, you could raise that event with
ReportProgressmethod, passing the name of the file curently scanning, and in theBackGroundWorker.ProgressChangedevent handler you could update the label you want to use to show the file under scanning