meNu

Does anyone know if you can use the Copying Window which is displayed when you copy a file/folder
The window which appears with a file being copied from one folder to the other and also there is a progress bar along with the file names which are being copied!


Re: Windows Forms General URGENT Copying Window C# 2.0

Friendly Dog

You can make such a window easily by youself. Visual Studio provides all the animated .gif files. They are int VS2005ImageLibrary.zip under your visual stuio Common7 folder




Re: Windows Forms General URGENT Copying Window C# 2.0

theblueeyz

If you're willing to add a reference to the Microsoft.VisualBasic assembly, you can use the Microsoft.VisualBasic.FileIO.FileSystem.CopyFile() method to do your copying, which uses the shell to copy the files, so it can show the copying window.

Some people are not willing to do that. If you're not, you will have to replicate the dialog yourself, but that could prove difficult since the System.IO.File.Copy method does not provide a status callback of any kind.





Re: Windows Forms General URGENT Copying Window C# 2.0

ShellShock

I guess it is possible to duplicate the functionality in the Microsoft.VisualBasic assembly in C# - i.e., not reference the assembly but make calls direct to the Windows shell. A quick google of ".net file copy shell" reveals this article http://msdn.microsoft.com/msdnmag/issues/05/02/NETMatters/



Re: Windows Forms General URGENT Copying Window C# 2.0

meNu

I have tried this way and it does seem to be a good way when copying large files, but not a good way when copying small files. Is there a way I can pass the Microsoft.VisualBasic.FileIO.FileSystem.CopyDirectory a list off all the files & folders which need to be copied

I am creating a backup software and I will be copying files and folders at the same time. It wont be the same files and folders everytime so I want to know if it is possible to pass the methods in
Microsoft.VisualBasic.FileIO.FileSystem a list or something similar!