Vb net progressbar not updating

This callback-function should then be able to update the Progress Bar. Items) I set the Maximum to 4 because I know I only have 4 files for testing. But now that I think about it that's not really what I meant to do.I can see the progressbar update very quickly to halfway on two of the small files. I was thinking I could make the progressbar update based upon how far along the file was during the copy.In such cases (copying, writing several files) I use to update the Progress Bar according to the file size of the individual file related to the overall size of all files. But now that I think about it that's not really what I meant to do.

vb net progressbar not updating-4vb net progressbar not updating-86vb net progressbar not updating-2vb net progressbar not updating-18

Maximum = files For Each found File As String In My.

What I am trying to do is have it so that each file copied gets the Progress Bar a little closer to the end until they are all copied. Hi, your application starts the copying processes and the display of the progess-bar from within the same thread.

File-IO can be very consumptive regarding processor-time and thus performance.

Search Top Level Only, "*.avi", "*.png") Dim found File Info As New System.

Copy File(found File, Dest Folder_ & found File Info.

Leave a Reply