Basically, you will need to use RunWorkerAsync.
RunWorkerAsync starts an execution of a background operation. ( copy files etc..)
You will need to connect your progressbar with this method.
Check this answer to have a practic example:
Running a method in BackGroundWorker and Showing ProgressBar
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.