G
Guest
I have such one written in VB6.
Public Function GetNodeByText(colNodes As Nodes, sText As String) As Node
Dim nodEach As Node, nodResult As Node
For Each nodEach In colNodes
If nodEach.Text = sText Then
Set GetNodeByText = nodEach
Exit Function
End If
Next
End Function
But how to write in C# for .NET TreeView where each node has its own
collection of nodes and there is no total collection? It's rather difficult,
isn't it?
May someone help?
Thanks in advance.
Public Function GetNodeByText(colNodes As Nodes, sText As String) As Node
Dim nodEach As Node, nodResult As Node
For Each nodEach In colNodes
If nodEach.Text = sText Then
Set GetNodeByText = nodEach
Exit Function
End If
Next
End Function
But how to write in C# for .NET TreeView where each node has its own
collection of nodes and there is no total collection? It's rather difficult,
isn't it?
May someone help?
Thanks in advance.