Hello,
I have a system.windows.forms.treeview docked inside a panel that I am setting a node selected programically. What method or property would I use to have the treeview scroll the selected into view.
Thanks
Hello,
I have a system.windows.forms.treeview docked inside a panel that I am setting a node selected programically. What method or property would I use to have the treeview scroll the selected into view.
Thanks
node.EnsureVisible();
for example:
if(treeView.SelectedNode != null) treeView.SelectedNode.EnsureVisible();
(see MSDN)
I tried this multiple times and it's not working.