Search Forum
(57415 Postings)
Search Site/Articles

Archived Articles
712 Articles

C# Books
C# Consultants
What Is C#?
Download Compiler
Code Archive
Archived Articles
Advertise
Contribute
C# Jobs
Beginners Tutorial
C# Contractors
C# Consulting
Links
C# Manual
Contact Us
Legal

GoDiagram for .NET from Northwoods Software www.nwoods.com


              
Printable Version

Outlook Style Tree View
By Tadas Budvytis

Here is a simple demo of Outlook style treeview.

Under Outlook style i mean treeview with additional information like, how many unread mails left in the folder. Such info usually is painted in different color. e.g. blue.

To look standart TreeView like MS treeView We must to:

1. Handle events sent from TreeView to his parent e.g. panel or Form
2. Paint additional information.

in the demo project for such purposes are created two functions

1. void WndProc(ref Message m)
And
2. void TreeViewPaint(ref Message m)

In demo project both these functions are in Form class.
In real world TreeViewPaint shall be in subclassed TreeView control and WndProc in his parent.

Download treeview.zip