2011-11-09 2 views
0

Win 폼 treeview 클래스를 사용합니다. 전체 경로 속성으로 지정된 노드를 탐색 할 수있는 가능성이 필요합니다. 즉 fullpath ("country \ region1 \ city2")가 있으며이 경로로이 노드를 자동으로 선택하려고합니다. 누구든지 나를 도울 수 있습니까?# treeview 경로 탐색

답변

0

이 문제는이 대답은 물어 특정 질문과는 전혀 무관 당신에게 너무 codeproject variant of explorer with treeview navigation

+2

도움이 될 MSDN

private void PrintRecursive(TreeNode treeNode) { // Print the node. System.Diagnostics.Debug.WriteLine(treeNode.Text); MessageBox.Show(treeNode.Text); // Print each node recursively. foreach (TreeNode tn in treeNode.Nodes) { PrintRecursive(tn); } } // Call the procedure using the TreeView. private void CallRecursive(TreeView treeView) { // Print each node recursively. TreeNodeCollection nodes = treeView.Nodes; foreach (TreeNode n in nodes) { PrintRecursive(n); } } 

에 의해 트 리뷰 탐색이다. – BillW