Help With Progress Bar

rhm54

Member
Joined
Apr 9, 2007
Messages
22
Programming Experience
Beginner
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)
 
Thanks for the help!

You were right it was in the documentation. I am still learning VB.NET and for future reference is there any way to tie that file copy progress bar to a progress bar on the main form instead of using the default window?
 
Back
Top