I have an application in C # WinForms that when clicking a button, should start copying various folders and their contents.
Since this process is time-consuming, I'd like the user to know how the progress of the process goes through ProgressBar
.
I have already found some examples on the internet that exemplify a time-consuming process using a% re_de%, but I can not apply this type of example to my project.
What's the best way to do it? Get the number of folders and implement Thread.Sleep(10)
as the folders are being copied?
How to do this?