windows explorer treeview

wessamzeidan

Well-known member
Joined
Dec 8, 2002
Messages
379
Location
Lebanon
Hi,
Im doing an image browser program using vb.net. In my program there is a treeview control in which I want to fill in it the folder structures of my harddrives, something like the one in the windows explorer. Is there an api function that does this...

Thanks in advance....
Wessam
 
System.IO.Directory.GetDirectories("path here") will return all the folders in a given directory. you will have to call this to populate each sub folder in the tree view.
 
Its probably the only way - you could do it mor elike explorer does and only populate one level at a time.
When you start fill all sub-folders of the root directory, when they expand a directory populate its sub folders etc.
 
Back
Top