List treeview 
Author Message
 List treeview

I wish to list all nodes ( expanded / not yes expanded)) from a tree under
one specific node
After lot of time I dont arrive to write the correct code for
a recursive Sub??
Do you have any address or sample to help me.
Thanks

--
_____________________________________
Michel - Webmaster de MegaTen - VbTools
http://www.*-*-*.com/
_____________________________________
J'entends et j'oublie. Je vois et je me souviens.
Je fais et je comprends.



Sun, 05 Sep 2004 21:22:58 GMT  
 List treeview
Forget it. My code is good, not my understanding of registry???
If you want make profit
    Change the Debug.print with your specific code.

Public Sub Rec_Download(node As node)

    'Downstair the tree under a specific node

   Dim n As Integer
   If node.Children = 0 Then Exit Sub

      Set node = node.Child
      ' Set n to FirstSibling's index.
      n = node.FirstSibling.Index
      Debug.Print node

   Do
      If node.Children Then Rec_Download node
      Set node = TreeView1.Nodes(n).Next
      n = TreeView1.Nodes(n).Next.Index
      Debug.Print node
   Loop While n <> node.LastSibling.Index

End Sub

_____________________________________
Michel - Webmaster de MegaTen - VbTools
http://MegaTen.alterlinks.fr
_____________________________________
J'entends et j'oublie. Je vois et je me souviens.
Je fais et je comprends.



Quote:
> I wish to list all nodes ( expanded / not yes expanded)) from a tree under
> one specific node
> After lot of time I dont arrive to write the correct code for
> a recursive Sub??
> Do you have any address or sample to help me.
> Thanks

> --
> _____________________________________
> Michel - Webmaster de MegaTen - VbTools
> http://MegaTen.alterlinks.fr
> _____________________________________
> J'entends et j'oublie. Je vois et je me souviens.
> Je fais et je comprends.



Mon, 06 Sep 2004 00:12:12 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Resize List/Treeviews using mouse - How?

2. TreeView State Image List Problem - VB.Net

3. treeview looking like a list view

4. treeview & listview, slow directory listing

5. List Folders as all CAPS in Treeview?

6. Treeview drop down within a list view

7. How to list directories in a TreeView control?

8. Using a Treeview to List Tables & Fields

9. TreeView = Dir/File List

10. Resizing combined List-and Treeview

11. Newsgroup listing into a treeview control

12. Populating a treeview from list of paths: routine?

 

 
Powered by phpBB® Forum Software