Click to See Complete Forum and Search --> : combobox 'n treeview question


inhumanoid
November 9th, 1999, 06:39 AM
I have a combobox called cboNavigate and a treeview called tvwTree. When I click nodes in the treeview the combobox displays the fullpath. Now I want to implement that the user can type in a treeview path in cboNavigate and press enter and that the treeview will jump to the right possition.
f.i I type: "Sales, Sales dossiers, Communications" (without quotes) and press enter the treeview jumps to the Communications node in the threeview. (The pathseparator is as you can see ", ")

Anybody knows how to do this ??

senthil
November 12th, 1999, 05:01 PM
Treeview has a nodes collection. If you have the path as Key to each node in the collection, then just you can pass KEY to the collection to retrieve the node and with the retrieved node you can set the node as selected.