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:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click FolderBrowser1.RootFolder = Environment.SpecialFolder.Desktop FolderBrowser1.ShowDialog() TextBox1.Text = FolderBrowser1.SelectedPath My.Computer.FileSystem.CopyDirectory("C:\Pics", FolderBrowser1.SelectedPath) MsgBox("Done") End Sub
can any one help me Please.




,
Reply With Quote