Treeview nodes clear slow ..The Fix! 
Author Message
 Treeview nodes clear slow ..The Fix!

    tvTreeView.Visible = False
    tvTreeView.Nodes.Clear
    tvTreeView.Visible = True

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Wed, 18 Jun 1902 08:00:00 GMT  
 Treeview nodes clear slow ..The Fix!
Better yet:

Public Declare Function LockWindowUpdate Lib "user32.dll" (ByVal hWndLock As
Long) As Long

Call LockWindowUpdate(tvTreeView.hWnd)
tvTreeView.Nodes.Clear
Call LockWindowUpdate(0)


Quote:
>     tvTreeView.Visible = False
>     tvTreeView.Nodes.Clear
>     tvTreeView.Visible = True

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. treeview.nodes.clear slow!?

2. BUG:Treeview.Nodes.Clear method very slow with ComCtl32.DLL version 4.71.17123

3. Treeview: Nodes.Clear method slower than removing one-by-one

4. Clearing Treeview Nodes

5. Performance treeview.nodes.clear

6. TreeView nodes clear method

7. TreeView nodes clear method - SOLUTION

8. Focus on the Tree.Nodes.Clear method in treeview control

9. Treeview.Nodes.Clear

10. Clearing nodes in a Treeview crashes VB

11. TreeView.Nodes.Clear is slooooowww (Solution Within!)

12. Clear all nodes in a TreeView control

 

 
Powered by phpBB® Forum Software