I am trying to get all sub directorys, and load them into a treeview. its only getting the first subdirectory. how can I get all of the subdirectories
Code:
dim Drive
dim Drives = Directory.GetLogicalDrives()
Dim Folder, Folders
For each Drive in Drives
With TreeView1.Nodes.Add(drive)
Folders = Directory.GetDirectories(drive)
For each folder in folders
.nodes.add(folder)
next
end with
next