how can i select a particular child node
for example when i click on a node it is selected
so that
if selected node= TreeView1.Nodes(0).Nodes(1).Nodes(4) then

messagebox.show("node selected")
end if

You get the selected node through

TreeView1.SelectedNode

You can select a specific node in code by

TreeView1.SelectedNode = TreeView1.Nodes(0).Nodes(4)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.