To provide progressbar while copying files IN c#.


To provide progressbar while copying files IN c#

To provide progressbar while copying files IN c#.



First,add a reference by

In solution explorer ,

Rigtclick Reference->Add a Reference->Select Microsoft.VisualBasic in component coloumn.

then,

Add a namespace,
Using Microsoft.VisualBasic.FileIO;


then add the following code in your class.

FileSystem.CopyDirectory(sourcePath,destinationPath,UIOption.ALLDialogs);


Related Articles

More articles: Copying files Progress bar

Comments

No responses found. Be the first to comment...


  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: