hey im having trouble with a treeview! >.<
all i want to do is loop through the treeview, and when the nodes text is the same as a stored variable.. "drives" i need it to print all of the nodes children to a text file.
for example:
Dim i As Integer
i = 66
Dim endi As Integer
endi = 90
While (i <= endi)
dim drives as string
drives = chr(i) & ":\"

treeview:
+Root
--+C:\
-------+Cchild 1
-------+Cchild 2
--+D:\
-------+Dchild 1
-------+Dchild 2


lets say chr(i) changed to C
i want it to print in the text file:
Cchild 1
Cchild 2

and nothing more.
i know how to write the text file, but i dont have a clue on how to write these nodes.
please help
thanks