how to set progress bar during copying file from one folder to another in vb.net?
问题 Currently I'm doing project in vb.net and I want to set the progress bar while copying files from one folder to another. And the progress bar should move towards completion according to amount of file copied. 回答1: Concept used : Get the count of files in the source directory , and then whenever copying a file from source folder to destination folder increment a variable to trace how many files get transferred. Now calculate the files transferred percentage by using the following formula, % of