Hi, Im using the below code to look through a directory and add the folder names as treenodes to a treeview control. I'm needing then to search the folders and add to each respective node any file that has an .xls extension. Any guidance
Thanks
Thanks
Code:
Dim RootDir As New DirectoryInfo(fPath)
For Each Dir As DirectoryInfo In RootDir.GetDirectories
Dim item = Dir.Name
tvProgress.Nodes.Add(item)
tvProgress.ImageIndex = 0
If lstPlanned.Items.Contains(item) Then
lstPlanned.Items.Remove(item)
End If
Next