>>
I have a treeview with let's say 200 nodes and want to select a certain node by key if possible from withina program>>
>>
>>oForm.oTree1.SELECTEDITEM = oForm.oTree1.nodes[ 25 ]
>>oForm.oTree1.SetFocus()
>>
>Great. Now if it just would show the selected node in the tree so the use does not have to scroll to find it :-)
>(I know I want everything! :-)
>
>Thanks alot
>
>
>Peter
I believe a call to node.EnsureVisible() method will do it.
--sb--