Click to See Complete Forum and Search --> : Creating a Treeview
Xaviar
Dec 30th, 1999, 11:57 AM
I am attempting to use a Treeview In my app. Unfortunatly, I havent been able to figure out how to Create a control that is Explorer Style with the computers drives and directories. Can someone please help wit hthis one ?
If you want to make nodes in the treeview.
try this code.
Dim ndsNode As Node
' Here your making the first Main Nodes
Set ndsNode = TreeView.Nodes.Add(, , "MAIN", "Kayoca")
' Here your making a child nodes under the Main Node
Set ndsNode = TreeView.Nodes.Add("MAIN", tvwChild, "CHILD" & A, "This is Fun")
I hope this is what you mean. ? This code dont place directory into you tree. It's only a sample to make nodes.. :)
Xaviar
Dec 30th, 1999, 07:52 PM
I know how to create nodes, I am curious as how to creats an explorer type treeview that is interactve with the computers directories.
There are many roads to Rome...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.