Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search for node in Treeview
Message
 
To
10/10/2006 12:37:07
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01160907
Message ID:
01160935
Views:
22
>Hi All,
>
>I would like to search for a node in a treeview based on the key and select the item when found. How would I do that?
>
>TIA
>M

In addition to Cetin make sure that this node is visible:
myTv.SelectedItem = myTv.Nodes("key")
myTv.SelectedItem.EnsureVisible()

****
myTv.Nodes("key").Selected = .t.
myTv.Nodes("key").EnsureVisible()
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform