I have created TreeList in Windows form and I added up and down buttons .In treelist there are lot of parent nodes with child nodes. Once expand a parent node , having child nodes and the child node is also a parent node. I want to get the count value of child node for current selected Parent Node.
Please Guide me solve this issue.
Thanks and regards
Saravanan
The
SelectedNodeproperty of aTreeViewobject returns the currently selected node.For any node in a tree view (including the one returned by
SelectedNode), theLastNodeproperty returns the last child node under it.In general, it would be beneficial for you to study all the properties and methods of a class that you're working on, to discover is behaviours. For instance in this case, looking at the
TreeViewclass andTreeNodeclass gives you the information required to navigate a tree view.