G
Guest
Ok, I have a simple question but I don't think there is a simple answer.
I want to:
-search a Treeview node.text property for a value input by the user in a
textbox
-starting at the selectednode
-search all levels
-if the end of the tree is reached (and not found), start at the beginning
of the tree
-stop at the selected node if the text is not found in the tree
I did this is VB6 with no problem, but as we all know, the Treeview control
has changed dramatically in .net. I can search the treeview now (with
recursion) starting at the top and going through all nodes until found or at
the end. Which, by the way, helps to add nodes dynamically to a node that
already exists.
I'm hoping there is an easy way to do this without having to keep track of
which "level" your on and so forth. Any help is greatly appreciated.
Thanks,
Tom
I want to:
-search a Treeview node.text property for a value input by the user in a
textbox
-starting at the selectednode
-search all levels
-if the end of the tree is reached (and not found), start at the beginning
of the tree
-stop at the selected node if the text is not found in the tree
I did this is VB6 with no problem, but as we all know, the Treeview control
has changed dramatically in .net. I can search the treeview now (with
recursion) starting at the top and going through all nodes until found or at
the end. Which, by the way, helps to add nodes dynamically to a node that
already exists.
I'm hoping there is an easy way to do this without having to keep track of
which "level" your on and so forth. Any help is greatly appreciated.
Thanks,
Tom