/ Published in: Visual Basic
This method returns a TreeView node based on its key.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Private Function getNodeByKey(key As String, treeView_ As Object) As Node Dim i As Long For i = 1 To treeView_.Nodes.count If (treeView_.Nodes(i).key = key) Then Set getNodeByKey = treeView_.Nodes(i) Exit Function End If Next i Set getNodeByKey = Nothing End Function