Greetings,
I have a form that I will be using to copy directories of photos from memory cards to locations on a computer. I would like to add a progress bar to the application to show the progress of the copying in real time. Problem is I don't know how to do that, anyone have any ideas?
This is the code that I use to copy the directory in the first place
Dim SourceDir As String = SourceTextBox.Text
Dim DestinationDir As String = DestinationTextbox.Text
If System.IO.Directory.Exists(DestinationDir) Then
My.Computer.FileSystem.CopyDirectory(SourceDir, DestinationDir,)
Else
My.Computer.FileSystem.CreateDirectory(DestinationDir)
My.Computer.FileSystem.CopyDirectory(SourceDir, DestinationDir)
I have a form that I will be using to copy directories of photos from memory cards to locations on a computer. I would like to add a progress bar to the application to show the progress of the copying in real time. Problem is I don't know how to do that, anyone have any ideas?
This is the code that I use to copy the directory in the first place
Dim SourceDir As String = SourceTextBox.Text
Dim DestinationDir As String = DestinationTextbox.Text
If System.IO.Directory.Exists(DestinationDir) Then
My.Computer.FileSystem.CopyDirectory(SourceDir, DestinationDir,)
Else
My.Computer.FileSystem.CreateDirectory(DestinationDir)
My.Computer.FileSystem.CopyDirectory(SourceDir, DestinationDir)