Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Simply,

'If i have Mynode as New Treenode

'While i'm reading my database

'i define each parentNode and assign them a name, with

VB
Mynode.name = x


'But when i define my childNodes
'i also want to give them a name

'I want to write something like this, but this is obviously not working

VB
Mynode.child.name= y


How could i do this????
Thank you so much!
Posted
Updated 6-Feb-15 3:58am
v2

You need to find the child node from the TreeNode.Nodes collection[^] of the parent. Once you have the actual node then you can set its name.
 
Share this answer
 
Comments
Marcelo Ilardi 6-Feb-15 10:09am    
Can you give me an example with Code?
Richard MacCutchan 6-Feb-15 10:12am    
I've given you the link to the documentation, I suggest you look at the sample code on that page.
MyNode.nodes(0).name=y
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900