In C# 2.0 does anyone know how to display the count of children nodes like Outlook does with unread emails. Also, if the count displayed can be in a different color to the node text.
Has anyone achieved this with "Safe" code?
In C# 2.0 does anyone know how to display the count of children nodes like Outlook does with unread emails. Also, if the count displayed can be in a different color to the node text.
Has anyone achieved this with "Safe" code?
In order to display a string with more than one color you'd have to do custom GDI drawing in the treeview. Here's a chapter on how to do OwnerDrawn controls:
inherit from the treeview control then change it to suit your needs