I have created a tree view and I would like to set the focus to a node. Can anyone help me with this.
Treeview1.Node(1).Node(0)
Need help with the above, tring to set the focus to Child 0 of Node 1.
Thanks
Printable View
I have created a tree view and I would like to set the focus to a node. Can anyone help me with this.
Treeview1.Node(1).Node(0)
Need help with the above, tring to set the focus to Child 0 of Node 1.
Thanks
try this
TreeView1.SelectedNode = TreeView1.Nodes(1).Nodes(0)
that would be the first child of the second node
this is for the first child of the first node (0 bases array index):
TreeView1.SelectedNode = TreeView1.Nodes(0).Nodes(0)
Thanks, that was it