Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
[b][red]This message was edited by Slothman at 2006-5-30 3:46:32[/red][/b][hr]
Hi, I got the following code that adds any directory I choose from a folderbrowsedialog. It ads all the subdirectories of the directory I chose but how do I display all directories subdirectories?
documents and Settings <--- How to get all directories and subdirs?
If Dir.ShowDialog = DialogResult.OK Then
Dim strPath As String = Dir.SelectedPath
Dim diDirectories As New DirectoryInfo(strPath)
Dim directory() As DirectoryInfo
directory = diDirectories.GetDirectories()
Catch ex As Exception
Dim di As DirectoryInfo
Dim tn As New TreeNode
tn.Text = strPath
For Each di In directory
0 · ·