How to show the all folder and subfolders of my system in a tree view
hi all,, i have to show the all folder and subfolders of my system in a tree view .. can anybody help me out... thnx in advance.....
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Muhammad Shahid Farooq107 reputationPosted Oct 16, 2008, 6:46 AM EDT
using
System.IO;DirectoryInfo
objDirectoryInfo; DirectoryInfo[] objDirectoryInfoArray;objDirectoryInfo =
new DirectoryInfo("C:\\Program Files");objDirectoryInfoArray = objDirectoryInfo.GetDirectories();
for (int i = 0; i < objDirectoryInfoArray.Length; i++){
treeView1.Nodes.Add(objDirectoryInfoArray[i].Name);
}