J
JSM
Hi,
I have been racking my brain over this one for a couple of days and have
finally given up. I am currently converting a project from VB6 to C#. I have
a list of paths in a database which I want to display as a folder tree in a
tree view.
The paths are in the format of :
\
\Folder1\
\Folder1\SubFolder1a\
\Folder2\
\Folder2\SubFolder2a\
\Folder2\SubFolder2b\
\Folder2\SubFolder2b\SubFolder2ba\
etc etc (folder names are only examples)
I did this quite easily in VB because I could specify a tree node's parent
by using it's key (which I had set to equal the node's path), however since
treenodes don't use keys anymore and you can only directly access a node
using it's index I am at a loss how I can do this.
Has anybody done something similar in C#? If not - any ideas on how I would
do this?
Any help will be appreciated.
Cheers,
John
I have been racking my brain over this one for a couple of days and have
finally given up. I am currently converting a project from VB6 to C#. I have
a list of paths in a database which I want to display as a folder tree in a
tree view.
The paths are in the format of :
\
\Folder1\
\Folder1\SubFolder1a\
\Folder2\
\Folder2\SubFolder2a\
\Folder2\SubFolder2b\
\Folder2\SubFolder2b\SubFolder2ba\
etc etc (folder names are only examples)
I did this quite easily in VB because I could specify a tree node's parent
by using it's key (which I had set to equal the node's path), however since
treenodes don't use keys anymore and you can only directly access a node
using it's index I am at a loss how I can do this.
Has anybody done something similar in C#? If not - any ideas on how I would
do this?
Any help will be appreciated.
Cheers,
John