/ 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.
- 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
You need to login to post a comment.