Does anyone know how to create a tree in VB. I'm use to doing it in C where you have a node with a pointer to parent and child. Don't know how to accomplish this in vb
Printable View
Does anyone know how to create a tree in VB. I'm use to doing it in C where you have a node with a pointer to parent and child. Don't know how to accomplish this in vb
You can use tree view control
Iouri Boutchkine
[email protected]
Create a new class with two members, Parent and Child of type Object and manipulate it as if these were pointers.
HTH,
D.
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
I don't really need a control but a logical tree I can transverse using a recursive function.
The Treeview control actually has what you want. Its methods include the ability to access a nodes parent as well as siblings and Children.
John G