I used a treeview with scrollable property true. Firstly I generated the treeview. Then I selected a treenode as :
After that I refresh the treeview in a structured way, like Expanded node as expanded and Collapsed as collapsed.
Then I need to keep that selected node in the visible zone, so I used :
Still the node is not is not in the visible zone as the vertical Scroll Bar goes at the top of the treeview.
Please help how I can maintain the vertical Scroll Bar position?
Thanks in Advance.
Sanjoy.
VB.NET:
dim node as TreeNode
node=treeview1.Nodes(1)
Then I need to keep that selected node in the visible zone, so I used :
VB.NET:
node.EnsureVisible()
Please help how I can maintain the vertical Scroll Bar position?
Thanks in Advance.
Sanjoy.