/ Published in: Visual Basic
The usual Clear method for TreeViews is painfully slow; this is a quicker alternative. It clears all nodes in a TreeView.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Private Sub clearTreeView(treeView_ As Object) Dim i As Long For i = treeView_.Nodes.count To 1 Step -1 treeView_.Nodes.Remove i Next i End Sub