Hello everyone..
I have this problem in making a simple search like the windows search to search files and folders.
I want it to search within the specified folder and subfolders inside it...and return all the files matching the query.
Here is what Ive tried.,.
.but the problem is...My program freezes till the search ends unlike the windows search.VB Code:
Dim s As String = TextBox1.Text For Each file As String In My.Computer.FileSystem.GetFiles("c:\", FileIO.SearchOption.SearchAllSubDirectories, s) ListView1.Items.Add(file) Next file
Someone help...Thank you so much in advance :-)




Reply With Quote