winform treeview 递归

foreach (TreeNode CNode in LastTree.Nodes)
  {
abc(CNode);
  }

void abc(TreeNode node){
  MessageBox.Show(node.Text);
foreach(TreeNode child in node.ChildNodes){
abc(child);// 递归
}
}
posted @ 2011-04-08 00:03  V587  阅读(451)  评论(0编辑  收藏  举报