I need to scroll TreeView (Windows Forms) from TOP to BOTTOM...
I should clarify that I have two TreeViews... If the first was scrolled by the user, the second treeView must be automatically scrolled. I don't know what node is selected...
How can I do this?
For top node:
TreeView.Nodes[0].EnsureVisible();
For bottom node:
TreeView.Nodes[TreeView.Nodes.Count-1].EnsureVisible();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With