help on file viewing

mike-wigan

Newcomer
Joined
Oct 6, 2005
Messages
16
Location
Wigan UK
i have a form and i want to see folders in one window and the files in those folders in another window
image attached of how i need it to work.
shot.gif
 
mike-wigan said:
i have a form and i want to see folders in one window and the files in those folders in another window
image attached of how i need it to work.

the class you should use is System.IO.Directory

The methods are
GetLogicalDrives() retrieving all the disks
GetDirectories() retrieving all directories
GetFiles() retrieving all files

They all return an array of strings containing the names of the items.

with this information you can build what you want, using these Controls the treeview and the listview.

This should get you started, If you still need some help please let me know

Greetz
 
There is a directory tree view control available for free (make sure you read the license, I don't know the details) on MSDN as part of the VBPowerPack. Do a search for VBPowerPack and you will be sure to find it.
 
Back
Top