If you want to make sure a node is visible, you can use the EnsureVisible method:
TreeView1.Nodes(21).EnsureVisible
This will expand any items, and scroll as required to ensure that the item specified is visible.
If a node has child items, a + appears next to it. The user can press this to show the child items. When the user expands an node, the Expand event occurs. Once the node has been expanded, a - appears next to it. When this is pressed, the child items are hidden, and the Collapse event occurs
Comments