Cor said:
Hi Alexis,
I think this is to much a riddle to get a real answer.
You have to describe it something furter what your want (what is the
subclass) and wherefore it should be a subclass?
Cor
Ok,
The treeview control has a treenode collection and each treenode has a
Text property which is an "String". This text (string) is all the
information the treenode will display, right? I want to display the
text in multiple colums like the ListView control does in the Details
view.
This is what I did.
I subclassed a TreeNode object and change the Text (String) Object to
a ListViewItem Object. I can then add and get information to/from the
SubItems (columns) of the ListViewItem (Now part of the TreeNode) but
the Tree control does not display the ListViewItem.
So basically I'm trying to combine a ListViewItem and a TreeNode to
make a Tree with multiple columns. I saw in another news group this
combination referred as a TreeList
I know there are some third party treeview that display columns, but
I'm not allow to add third party control to this project. The fact
that others had done it also tells me that it is possible.
If subclassing is not the best way, is there a better way? APIs? I
would like to use an object oriented approach.
Thanks in advance.
/Alexis