If you want to add an attribute to a treenode you need to subclass your own
node.
public class myNode : TreeNode
{
int _depth = 0; // some default value
public myNode() // constructor :D
{
}
public int depth
{
get { return _depth; }
set { _depth = value; }
}
}
-C
http://www.typemismatch.com/
(For Developers!)
"Stefan" <an*******@discussions.microsoft.com> wrote in message
news:08**********************************@microsof t.com...
Hi NG,
i need a TreeNode with an attribute "depth", i.g. it has to be possible to
skip one ore more levels of the tree explicitly. Example:
Root--Node1--Node2
Root-----------Node3
Where do i find the Paint-Method or anything so that i can implement my
own TreeNode?
Thanx for any help
Stefan