wessamzeidan Posted November 22, 2003 Posted November 22, 2003 Hi, I'm 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 Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
Administrators PlausiblyDamp Posted November 22, 2003 Administrators Posted November 22, 2003 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
wessamzeidan Posted November 22, 2003 Author Posted November 22, 2003 I've tried this way, but its so slow, and I need a more efficient way to do it....... Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
Administrators PlausiblyDamp Posted November 23, 2003 Administrators Posted November 23, 2003 It's 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 it's sub folders etc. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.