Answer the question
In order to leave comments, you need to log in
How to properly render a CustomTreeNode in WinForms (C#)?
Good afternoon! Please help.
There is a class:
class TreeNodeItem: TreeNode
{
public string uid { get; set; }
public string firstName { get; set; }
public TreeNodeItem(String nodeText)
{
this.Text = nodeText;
}
}
protected override void OnDrawNode(DrawTreeNodeEventArgs e)
{
TreeNodeItem node = (TreeNodeItem) e.Node; // тут дичайшие тормоза
// код отрисовки...
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question