private void Form1_Load(object sender, EventArgs e)
{
foreach (DriveInfo drv in DriveInfo.GetDrives())
{
if (drv.IsReady)
{
TreeNode t2 = new TreeNode();
t2.Text = drv.Name;
t2.Nodes.Add("");
treeView.Nodes.Add(t2);
}
}
}
父节点不扩展到子节点我该如何解决?