private void directoryTree_AfterSelect(object sender, TreeViewEventArgs e) { textBox5.Text = e.Node.Name; if (Directory.Exists(e.Node.Name)) { TreeViewItems.Add(e.Node); } }