>>Einar,
>>I haven't yet worked with .Net TV so might not apply.
>>
>>treeNode.Id looks like node.key (unique) in Activex TV. If it's Activex one can do this:
>>
>>oNode = Tv.Nodes[cKey] or Tv.Nodes[iIndex]
>>
>>w/o a need to loop.
>>Cetin
>
>Id is acctually a property of my custom TreeNode class that inherits from System.Windows.Forms.TreeNode. From what I know there is no longer a tag property since you now can make your own custom treenode and add as many properties as you want so passing a tag value to some method that returns the correct node is gone. That is acctually what I am trying to reproduce. I think the fastest way to reproduce it is to use recursion.
>
>I've got a solution that works great now (it is faster than a speeding bullet) but maybe I can squeeze another couple of milli-seconds out of it <s>
>
>Einar
Einar,
I think it hasn't dropped Nodes[iIndex], Nodes[cIndex] functionality. I found these in documentation:
"TreeNodeCollection.Item (Int32) Gets or sets the TreeNode at the specified indexed location in the collection.
Supported by the .NET Compact Framework.
TreeNodeCollection.Item (String) Gets the tree node with the specified key from the collection. "
PS: Supported in 2.0
Cetin