Click here to Skip to main content
15,895,084 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: TreeView Find Starting from Some Child Node Pin
Eddy Vluggen11-May-13 22:18
professionalEddy Vluggen11-May-13 22:18 
GeneralRe: TreeView Find Starting from Some Child Node Pin
treddie11-May-13 23:50
treddie11-May-13 23:50 
GeneralRe: TreeView Find Starting from Some Child Node Pin
Eddy Vluggen12-May-13 1:16
professionalEddy Vluggen12-May-13 1:16 
GeneralRe: TreeView Find Starting from Some Child Node Pin
treddie13-May-13 11:04
treddie13-May-13 11:04 
GeneralRe: TreeView Find Starting from Some Child Node Pin
TnTinMn13-May-13 15:13
TnTinMn13-May-13 15:13 
GeneralRe: TreeView Find Starting from Some Child Node Pin
treddie13-May-13 18:24
treddie13-May-13 18:24 
GeneralRe: TreeView Find Starting from Some Child Node Pin
Eddy Vluggen14-May-13 9:10
professionalEddy Vluggen14-May-13 9:10 
GeneralRe: TreeView Find Starting from Some Child Node Pin
treddie14-May-13 11:53
treddie14-May-13 11:53 
Eddy Vluggen wrote:
Search CP, and you'll find that a lot of people think something similar.


Well, at least I'm not alone.

Eddy Vluggen wrote:
The moment I recognize the repeating pattern; same code, same handler, just a different level. Neat piece o' code that TnTinMan posted, mine would have been longer


Problem is I couldn't find a way to generalize the repeating code. I looked all over for something to do just that and continued to try to solve it, but my unfamiliarity with the TreeView properties bit my ass. That really is a nice compact piece of code.

After looking at it, it seems that what makes it work, is that once each match is made, what is important is the handle of the node. Otherwise, since two nodes can have the same name and text label, there would be no way for vb to know what node was being referred to. But the handles are all different. I tried working with the handles earlier, but could not find a way to get a node selected based on its handle.

modified 14-May-13 18:14pm.

QuestionStore sha passphrase in code Pin
frankelman11-May-13 2:33
frankelman11-May-13 2:33 
AnswerRe: Store sha passphrase in code Pin
Garth J Lancaster11-May-13 2:54
professionalGarth J Lancaster11-May-13 2:54 
GeneralRe: Store sha passphrase in code Pin
frankelman11-May-13 8:01
frankelman11-May-13 8:01 
GeneralRe: Store sha passphrase in code Pin
Garth J Lancaster11-May-13 17:16
professionalGarth J Lancaster11-May-13 17:16 
GeneralRe: Store sha passphrase in code Pin
frankelman12-May-13 2:22
frankelman12-May-13 2:22 
QuestionConverting a string into a method Pin
treddie10-May-13 20:54
treddie10-May-13 20:54 
AnswerRe: Converting a string into a method Pin
NeverJustHere11-May-13 0:04
NeverJustHere11-May-13 0:04 
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 
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 

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.