Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select a node in treeview programmatically?
Message
 
 
To
15/04/2009 10:55:49
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01394949
Message ID:
01394984
Views:
51
>>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform