How to select the child node in TreeView in c# windows form
问题 I have one tree view in my windows form. I use the following function to select the node in that treeView. private void FindAndSelect(TreeNodeCollection collection, object toSelect) { //problem in this line becouse while converting the toSelect into IstructuredEntity is showing null. var entityToSelect = toSelect as Decoupling::IStructureEntity; if (entityToSelect == null) //just select the Structure root { _treeView.SelectedNode = _treeView.Nodes[0]; return; } foreach (TreeNode tn in