I want to add just the badge images in the right of the TreeNodes.
The expand/Collapse buttons, icons and texts shouldn't be changed.
I used the following code :
public void treeView_DrawNode(object sender, DrawTreeNodeEventArgs e)
{
e.DrawDefault = true;
e.Graphics.DrawImage(image1, e.Bounds.Right - 30, e.Bounds.Y);
}
However, if the text of the treenode was long, it was over the image. The badge is invisible.
I think that e.DrawDefault = true; may affect after the function returns.
How can I show the badge images without redrawing the texts and icons?