get folder path in a treenode ?
-
i'm trying a treefolder and i've got some probleme retrieving from which drive comes a treenode.fullpath. lets say i've got a node like this -my computer - drive C - folder 1a - folder2 - folder 1b - drive D - folder 4c - folder 3 when i get a fullpath i've got my computer\drive C\folder 1a\folder2 so i get only the "\folder 1a\folder2" part then i dont know how to determine that drive C is "C:\" i thought of getting the index of drive C and map it in the getlogicaldrive list but how do i get the drive C index when i'm in folder2 node ?!
-
i'm trying a treefolder and i've got some probleme retrieving from which drive comes a treenode.fullpath. lets say i've got a node like this -my computer - drive C - folder 1a - folder2 - folder 1b - drive D - folder 4c - folder 3 when i get a fullpath i've got my computer\drive C\folder 1a\folder2 so i get only the "\folder 1a\folder2" part then i dont know how to determine that drive C is "C:\" i thought of getting the index of drive C and map it in the getlogicaldrive list but how do i get the drive C index when i'm in folder2 node ?!
Use the tag property while loading the treeview and get the link from it.
-
Use the tag property while loading the treeview and get the link from it.
well the fact is that the drive is embedded in the tag but since i've got a root node i can't happend to get it i use the selectnode then i'm stuck to find the level 2 node which happens to have the drive path in its tag. root - drive 0 (tag = c: ) - node 1 . - drive 1 (tag = d: ) - node 2 - nod3 -nod4 <- selected node nodes[0].nodes ...?