Click here to Skip to main content
15,886,199 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Converting a string into a method Pin
treddie11-May-13 17:05
treddie11-May-13 17:05 
GeneralRe: Converting a string into a method Pin
Dave Kreskowiak11-May-13 19:18
mveDave Kreskowiak11-May-13 19:18 
GeneralRe: Converting a string into a method Pin
treddie11-May-13 21:36
treddie11-May-13 21:36 
GeneralRe: Converting a string into a method Pin
Dave Kreskowiak12-May-13 4:55
mveDave Kreskowiak12-May-13 4:55 
GeneralRe: Converting a string into a method Pin
treddie13-May-13 11:13
treddie13-May-13 11:13 
GeneralRe: Converting a string into a method Pin
Dave Kreskowiak13-May-13 12:18
mveDave Kreskowiak13-May-13 12:18 
GeneralRe: Converting a string into a method Pin
treddie13-May-13 13:06
treddie13-May-13 13:06 
GeneralRe: Converting a string into a method Pin
Dave Kreskowiak13-May-13 18:26
mveDave Kreskowiak13-May-13 18:26 
That doesn't make sense either as you'd have to manually walk the tree to find the node that is selected. Not very efficient, is it??

The TreeView already has a SelectedNode property which will return the node that is selected. From there, it's trivial to navigate up to the Node tree to the root of the Nodes collection in the TreeView control.

Getting back to your original search problem, you're going about it wrong. You're thinking about searching a tree structure that's not designed to be searched efficiently.

What you should be doing is a dedicated indexing solution for a collection of paths, each of which contains a reference to the Node it came from. Searching the dedicated structure would be far more efficient then searching the TreeView Nodes collection.

GeneralRe: Converting a string into a method Pin
treddie14-May-13 19:34
treddie14-May-13 19:34 
GeneralRe: Converting a string into a method Pin
treddie11-May-13 21:42
treddie11-May-13 21:42 
AnswerRe: Converting a string into a method Pin
dusty_dex11-May-13 0:30
dusty_dex11-May-13 0:30 
GeneralRe: Converting a string into a method Pin
treddie11-May-13 17:07
treddie11-May-13 17:07 
GeneralRe: Converting a string into a method Pin
dusty_dex12-May-13 0:01
dusty_dex12-May-13 0:01 
GeneralRe: Converting a string into a method Pin
treddie12-May-13 0:44
treddie12-May-13 0:44 
GeneralRe: Converting a string into a method Pin
dusty_dex12-May-13 1:05
dusty_dex12-May-13 1:05 
GeneralRe: Converting a string into a method Pin
treddie13-May-13 10:13
treddie13-May-13 10:13 
GeneralRe: Converting a string into a method Pin
dusty_dex13-May-13 10:50
dusty_dex13-May-13 10:50 
GeneralRe: Converting a string into a method Pin
treddie13-May-13 11:14
treddie13-May-13 11:14 
AnswerRe: Converting a string into a method Pin
Eddy Vluggen11-May-13 22:22
professionalEddy Vluggen11-May-13 22:22 
GeneralRe: Converting a string into a method Pin
treddie12-May-13 0:53
treddie12-May-13 0:53 
GeneralRe: Converting a string into a method Pin
Eddy Vluggen12-May-13 1:05
professionalEddy Vluggen12-May-13 1:05 
GeneralRe: Converting a string into a method Pin
treddie13-May-13 10:10
treddie13-May-13 10:10 
GeneralRe: Converting a string into a method Pin
Dave Kreskowiak13-May-13 12:19
mveDave Kreskowiak13-May-13 12:19 
GeneralRe: Converting a string into a method Pin
treddie13-May-13 13:15
treddie13-May-13 13:15 
AnswerRe: Converting a string into a method Pin
Edward Giles25-Jun-13 23:14
Edward Giles25-Jun-13 23:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.