C # TreeView Child Node Count .. Like Outlook

In C # 2.0, does anyone know how to display the number of child nodes like Outlook with unread messages. Also, if the displayed score might be different from the text node.

Has anyone achieved this with "safe" code?

+1


source to share


2 answers


To display a string with more than one color, you will need to make your own GDI drawing in a tree structure. Here's a chapter on how to make OwnerDrawn controls:



http://books.google.com/books?id=zDi4LIDvd4wC&pg=PA396&lpg=PA396&dq=treeview+ownerdrawn&source=web&ots=hJIvexSusO&sig=XR8-ktfgllcjFmGs0FSfP0reslYqIc&PA&PA&P=Alpg=PA396 & dq

+3


source


inherit from the treeview control and then modify it to suit your needs



-1


source







All Articles