Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15621

[RESOLVED] Treeview selecting the added node

$
0
0
I am bootstrapping myself up on using the Treeview control in VB. I have a quick question, after adding a child node using the following :

Code:

TreeView_Dir_List.SelectedNode.Nodes.Add(OpenFileDialog.SafeFileNames(0)) ' Add the new item
How can I then make it (the newly added node) the selected node? I know I can use the selectednode property to 'set' it, but how do I reference it?

Rick

Viewing all articles
Browse latest Browse all 15621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>