TreeView查找
使用时,在界面上添加一个 TextBox 用于输入查询字符串,再添加一个 Button
private void searchButton_Click(object sender, EventArgs e) {
tree.SelectedNode = Functions.TreeSearch(tree.SelectedNode, searchTextBox.Text);
tree.Focus();
}
tree.SelectedNode = Functions.TreeSearch(tree.SelectedNode, searchTextBox.Text);
tree.Focus();
}