private string _strpath; _strpath = folderBrowserDialog.SelectedPath; string _strDirectoryName = txtName.Text ; DirectoryInfo Ddirectory = new DirectoryInfo(_strpath); listBox1.Items.Clear(); foreach (DirectoryInfo directory in Ddirectory.GetDirectories(_strDirectoryName,SearchOption.AllDirectories)) { listBox1.Items.Add(directory.Name); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)