I would like to be able to add a progressbar to this code as it searches, but all my attempts results in the bar being updated at the end of the search instead of during.
For Each foundfile As String In My.Computer.FileSystem.GetFiles _
(PathDrawings, FileIO.SearchOption.SearchAllSubDirectories, TextBox1.Text & "*.pdf")
ListBox1.Items.Add(foundfile)
Does anyone have any ideas?
Thanks,
For Each foundfile As String In My.Computer.FileSystem.GetFiles _
(PathDrawings, FileIO.SearchOption.SearchAllSubDirectories, TextBox1.Text & "*.pdf")
ListBox1.Items.Add(foundfile)
Does anyone have any ideas?
Thanks,