B
bobbyballgame
Just started with the Windows Fomrm programming and I am running into
somethings that I feel should be done in a better way than I am now doing
them.
TreeNodes: Is there an easy way to get the level of the node?
I set up a hierarchy which is strict - something on the first level will be
a general root, levels below that are containers, and levels below that are
specific items, and depending on the level some very different behavior
ensues.
Also, if I want to find a specific node from the key - is it possible to do
that without iterating?
(e.g. TreeNode node = MyTreeNodeCollection.GetNodes(MyKey)[0] - or something
like that )
Any advice on dealing with TreeNodes would be helpful.
Thanks,
BB
somethings that I feel should be done in a better way than I am now doing
them.
TreeNodes: Is there an easy way to get the level of the node?
I set up a hierarchy which is strict - something on the first level will be
a general root, levels below that are containers, and levels below that are
specific items, and depending on the level some very different behavior
ensues.
Also, if I want to find a specific node from the key - is it possible to do
that without iterating?
(e.g. TreeNode node = MyTreeNodeCollection.GetNodes(MyKey)[0] - or something
like that )
Any advice on dealing with TreeNodes would be helpful.
Thanks,
BB