How to Select a Particular Node as a First Visible Node

This can be done by using the code snippet given below. This will allow the user to make a particular node as the first visible node. The EnsureVisibleSelectedNode property will help the user to bring the invisible node into a visible state by scrolling the ScrollBar to the SelectedNode, if necessary.

Property Table

TreeViewAdv Properties Description
EnsureVisibleSelectedNode Indicates if the selected node will be brought to view by scrolling if necessary.
private void Form1_Load(object sender, System.EventArgs e) 
{ 
    this.treeViewAdv1.SelectedNode=this.treeViewAdv1.LastVisibleNode; 
    this.treeViewAdv1.SelectedNode=this.treeViewAdv1.Nodes[3]; 

// Setting EnsureVisibleSelectedNode property to true, makes a particular selected node as the first visible node. 
    this.treeViewAdv1.EnsureVisibleSelectedNode=true; 
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) 
Me.treeViewAdv1.SelectedNode=Me.treeViewAdv1.LastVisibleNode 
Me.treeViewAdv1.SelectedNode=Me.treeViewAdv1.Nodes(3) 

' Setting EnsureVisibleSelectedNode property to true, makes a particular selected node as the first visible node. 
Me.treeViewAdv1.EnsureVisibleSelectedNode=True 
End Sub