How to call the built-in Copy Form of Windows from Vb.Net code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davyeg
    New Member
    • Oct 2011
    • 2

    How to call the built-in Copy Form of Windows from Vb.Net code?

    Greetings,

    I just need to know if there is a way to call the Copy Form of the Windows (i.e. the form appears when a file is being coping from one place to another in the hard drive using Copy/Paste of windows) from Vb.Net code.

    I wonder if there is an interface or class just like OpenFileDialog, SaveFileDialog, etc.. that can be used in the visual basic code and I imagine that you could assign the source file and the destination directory and it will automatically show the copying form with the copy details as same as windows.

    any idea or comment is highly appreciated...

    Thanks in advance..
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    I don't think that I fully understand what you're trying to accomplish.

    It's pretty easy to copy a file or the contents of a directory from one location to another location using the classes found in the IO Namespace.

    You need to provide the user a means to select the directory or file that they want to copy and select the directory where it should be copied to.

    The FileDialog should let you select the files/folders.

    While copying, display a form that shows the file being copied in a label...and if you want a progress bar to show how far you are along in the copying.

    -Frinny

    Comment

    • davyeg
      New Member
      • Oct 2011
      • 2

      #3
      Hello Frinavale...

      I think you really misunderstand what I`m trying to accomplish...

      I just want to call the "Copy/ Paste" process of the Windows not using the Copy function of the .Net framework....

      I want to know what the windows starts when the user click "Paste" from the Right Menu of the Mouse...Can this be called from inside a code??

      Thanks...

      Comment

      Working...