Click to See Complete Forum and Search --> : How to use the "Copy" control in VB
Vilas Deshmukh
February 22nd, 1999, 10:21 AM
When you copy a file using Windows Explorer, you get message that shows the progress of the copy operation. At the same time a control displays that file is being transferred from one folder to the other. How do I access this message box facility in a VB program?
phillip
February 22nd, 1999, 10:30 AM
if you just want to copy a file in vb then use
filecopy (source,destination)
else if you want to access the windows filecopy you can use dll to do this
filecopy is just as easy i feel.
Phillip
February 22nd, 1999, 10:30 AM
if you just want to copy a file in vb then use
filecopy (source,destination)
else if you want to access the windows filecopy you can use dll to do this
filecopy is just as easy i feel.
Chris Eastwood
February 22nd, 1999, 11:12 AM
Hi
If you really want to do this (rather than the standard VB method of copying a file), take a look at :
http://www.mvps.org/vbnet/code/shell/shfileopadv.htm
Regards
Chris Eastwood
CodeGuru - the website for developers
http://www.codeguru.com/vb
Vilas Deshmukh
February 22nd, 1999, 12:08 PM
Hello Chris,
Thanks for your reply. Actually, in my application, I have two tree views. I want to drag and drop nodes from one tree view and drop it on to the other tree view. And while the node is getting copied as a result of the drop operation, I want to give feedback to the user using the control that is used by the windows explorer when the user tries to copy a file. And therefore I need to know if you can access that control in your VB program.
Thanks,
Vilas
Chris Eastwood
February 22nd, 1999, 12:25 PM
Hi
I've got some code that is wrapped as an ActiveX DLL which sound's like it does what you want.
Basically, you setup the DLL (say what kind of AVI file you want to display), then call a display method which shows a form (just like explorer) with the file animation in progress (well, just about any AVI). This all happens asynchronously (sp?) so your program can continue to do whatever it wants.
When your code has finished, you simply call the destroy method on the object from the dll and the form is hidden.
If enough people are interested in this, I'll post it to the CodeGuru site.
Regards
Chris Eastwood
CodeGuru - the website for developers
http://www.codeguru.com/vb
Chris Eastwood
February 22nd, 1999, 02:30 PM
Hi
Just to let you all know, this article has now been posted on CodeGuru at
http://www.codeguru.com/vb/articles/1638.shtml
Regards
Chris Eastwood
CodeGuru - the website for developers
http://www.codeguru.com/vb
Animated Dialogs in VB5
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.