I spent several Hours on this one myself. To help with the learning curve I did a search via google and found several docs to help me out.
but here it is in a nut shell
Place the treeview control on the form and name it treeview1
this code goes in the form load event
Private Sub Form_Load()
'first you have to add the parent
Treeview1.nodes.add , ,"Parentkey","Parent"
'Then add the child
Treeview1.nodes.add "Parentkey",tvwChild,"Childkey","Child"
'Now a child of the child
Treeview1.nodes.add "Childkey",tvwChild,"Child2key","Child2"
end sub
this is basically the "Hello World" version of the data tree and you will get into things like recursion and such but it is well worth the time to learn it as it is a very powerful feature. You will find it is much more then just for file and folders it is great where ever there is a hierarchy. I use it to show the buildings then the floors located in those buildings then the rooms located on the floor then the equipment located in the rooms then the parts for that equipment ect..
Good luck and hope this helps