Results 1 to 3 of 3

Thread: Treeview is slow to unload

  1. #1

    Thread Starter
    Fanatic Member r0ach's Avatar
    Join Date
    Dec 1999
    Location
    South Africa
    Posts
    722

    Post

    You can try to make it appear faster.
    Code:
    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)

  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    Can you issue a node clear, as in:

    form.tree.nodes.clear

    when you close the form?

  3. #3
    Junior Member
    Join Date
    Sep 1999
    Location
    Rock Island
    Posts
    21

    Post

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width