CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 1999
    Posts
    2

    How to use the "Copy" control in VB



    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?

  2. #2
    Join Date
    Feb 1999
    Posts
    5

    Re: How to use the "Copy" control in VB



    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.

  3. #3
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: How to use the "Copy" control in VB



    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

  4. #4
    Join Date
    Feb 1999
    Posts
    2

    Re: How to use the "Copy" control in VB



    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

  5. #5
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: How to use the "Copy" control in VB



    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



  6. #6
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: How to use the "Copy" control in VB



    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured