Hello Guys,
Am having a new assignment and a new problem. I should make C# application witch shows drive letters in combo box, directories and only .txt files in tree view, and I should be able to open text file from tree view in text box using Open button. I all ready have code to show me drives letters in combo box, but I don’t know how to get tree view from selected drive in tree view control.
Thanks all for helping me.
private void Form1_Load(object sender, EventArgs e)
{
System.IO.DriveInfo[] drives = System.IO.DriveInfo.GetDrives();
for (int i = 0; i <= drives.Length - 1; i++)
{
comboBox1.Items.Add(drives[i].Name);
comboBox1.SelectedIndex = -1;
}
}