saving treeview to text

Mookie_jones

Member
Joined
Oct 23, 2005
Messages
16
Programming Experience
Beginner
I have a treeview and i want to save each node to text. Im not sure how to go about it.
 

Mookie_jones

Member
Joined
Oct 23, 2005
Messages
16
Programming Experience
Beginner
i tried to use this but the problem with it is that I have nodes at a ground level

i.e...


decl

' comment
' comment

;fold' this begins a new treenode but i dont want it to go to the textbox
; blah blah blah
;endfold ' this ends the node



For Each parentnodehold In tvnode.Nodes 'Whatever your element's name is.
RTB.AppendText(parentnodehold.Text)
For Each childnodehold In parentnodehold.Nodes

RTB.AppendText(childnodehold.Text)

Next childnodehold
Next parentnodehold
 
Top Bottom