Results 1 to 3 of 3

Thread: [2005] How to use ProgressBar for copying a Directory

  1. #1

    Thread Starter
    Member
    Join Date
    May 2006
    Location
    Bahrain
    Posts
    43

    [2005] How to use ProgressBar for copying a Directory

    Hello Everybody ,

    I want to ask about how can I use a progressBar to show the progress of copying a directory. And how I know that the copying process is completed successfully. This is the code for copying the directory:

    VB Code:
    1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    2.         FolderBrowser1.RootFolder = Environment.SpecialFolder.Desktop
    3.         FolderBrowser1.ShowDialog()
    4.         TextBox1.Text = FolderBrowser1.SelectedPath
    5.         My.Computer.FileSystem.CopyDirectory("C:\Pics", FolderBrowser1.SelectedPath)
    6.  
    7.         MsgBox("Done")
    8.     End Sub

    can any one help me Please.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] How to use ProgressBar for copying a Directory

    VB Code:
    1. My.Computer.FileSystem.CopyDirectory("C:\Pics", FolderBrowser1.SelectedPath, FileIO.UIOption.AllDialogs)

  3. #3

    Thread Starter
    Member
    Join Date
    May 2006
    Location
    Bahrain
    Posts
    43

    Re: [2005] How to use ProgressBar for copying a Directory

    thanks kleinma .

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