Show a Copying-files dialog/form while manually copying files in C#? -
I'm manually copying some folders and files via C #, and I want to show the user That's actually going on some. Currently, this program looks like like it is frozen, but it is actually copying files.
I thought that there is already a built-in dialog or form that shows the process, is there anything available to copy / move files in the same Windows Explorer, or everything from scratch Will make
Besides, is this the best way to show the user that something is going on actively?
Thanks for the help!
Do not fool a Microsoft.VisualBasic.FileIO namespace name , It's a very low name for C #. In the stable class file system
, there is CopyFile
and copyDirectory
method which has the capability.
In both CopyFile
and CopyDirectory
, note the UIOption
. It emulates the Windows Explorer copy window.
FileSystem.CopyFile (sourceFile, destinationFile, UIOption.AllDialogs); FileSystem.CopyDirectory (Source Directory, Destination Directory, UIOption.AllDialogs);
Comments
Post a Comment