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.