PDA

Click to See Complete Forum and Search --> : Treeview is slow to unload


r0ach
Jan 14th, 2000, 12:34 AM
You can try to make it appear faster.

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Me.Visible = False
Refresh
Unload Me
End Sub

This way, the program will unload in the background (i think. I'm not gonna write a program with a 2000+ noded treeview control, just to test it ;) )

It's prolly NOT the best way, but it should work. Lemme know if it does

------------------
r0ach(tm)

JHausmann
Jan 14th, 2000, 02:21 AM
Can you issue a node clear, as in:

form.tree.nodes.clear

when you close the form?

Smithrr
Jan 14th, 2000, 11:48 AM
I have a tree view control on my form. It is populated with about 2 to 3 thousand nodes. When unloading the form, it appears that the tree view is clearing the items one at a time. This makes the unload event of the form very slow. Do you have any ideas on how this unloading can be made any faster?