From: Mr. X. on 5 Jun 2010 08:18
How can I search a treenode, and get the a specific key & value of the
current searched node.
From: Phill W. on 7 Jun 2010 09:33
On 05/06/2010 13:18, Mr. X. wrote:
> How can I search a treenode, and get the a specific key & value of the
> current searched node.
Searching Trees is fiddly, because you have to work with their inherent
What "key" where you hoping to find? The TreeNode's FullPath property
gives you all the parent names as well (actually, the .Text properties,
+- B A\B
| +- C A\B\C
| +- D A\B\D
If you're holding values against each Node, or each Node is a reference
to an object held elsewhere, I would strongly recommend extending the
TreeNode class and adding your own properties to your sub-class.
Public Sub New(byval source as SomeType)
m_source = source
Public ReadOnly Property Source() as SomeType
Private m_source as SomeType = Nothing