|
-
Dec 28th, 2006, 03:26 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Building a treeview VB.Net 2003
Hi,
I have a treeview built, and it works just like I want it. However, I have to "prime" it with the first level of nodes. After that, I go through each first level node and add nodes to it, and add nodes to its nodes, and .... all the way down recursively. This recursive function, AddNodes, receives a node as its input. So, right now its like this:
BuildTree()
GrabFirstLevelNodes()
for each node in tree
AddNodes(node)
End Sub
Is there any way around this, or is my code just going to have to have this ugly GrabFirstLevelNodes sub? I tried to send the tree itself as a node (figured it was worth a shot), but it isn't the right type.
Any ideas?
Thanks
Last edited by 18experience; Dec 28th, 2006 at 03:30 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|