Treeview and preselected node

M

Maileen

Hi,

I have on my form a treeview control with several nodes.
when my form is loaded, I would like to preselected the 1st node of my
treeview and to see it selected (highlighten node text)

how can i do this please ?
thanks,

Maileen
 
H

Herfried K. Wagner [MVP]

Maileen said:
I have on my form a treeview control with several nodes.
when my form is loaded, I would like to preselected the 1st node of my
treeview and to see it selected (highlighten node text)

\\\
Me.TreeView1.SelectedNode = Me.TreeView1.Nodes(0)
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top