Array drivesList= DriveInfo.GetDrives(); for (int index = 0; index < drivesList.GetLength(0); index++) { string text = drivesList.GetValue(index).ToString(); TreeNode parentNode = new TreeNode(text); parentNode.PopulateOnDemand =true; TreeView1.Nodes.Add(parentNode); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)