I am not seeing this as a discussion topic which leads me to believe I am the only one who has this problem. When using a Treeview control, you clear it using the .Nodes.Clear Method. For some reason when I use this method with a latge amount of data in the control, the control hangs for a short period while it erases the contents of the control.
I am using the following loop to clear the control instead and it works quite a bit faster. Any thoughts on why I am seeing this?
vs.
I am using the following loop to clear the control instead and it works quite a bit faster. Any thoughts on why I am seeing this?
Code:
For i = tvwList.Nodes.Count To 1 Step -1
tvwList.Nodes.Remove (i)
Next
Code:
tvwList.Nodes.Clear