Articles
DevASP - ASP and XML Articles, Samples, Toturials, Sample Chapters and resources for Developers Friday, May 24, 2013
Home
Articles & Samples
Dev Search
Sample Chapters
Link to US
Contact
Search Directory
Applications
Articles & Samples
Components
Community
Database
Developer Sites
Downloads
Hosting Services
Introduction
Knowledge Base
Sample Chapters
WebCasts
ASP Directory
Applications
Articles & Samples
Components
Developer Sites
Knowledge Base
Sample Chapters
WebCasts
XML Directory
Applications
Articles & Samples
Developer Sites
Error, Bugs & Fixes
Downloads
Introduction
Knowledge Base
Sample Chapters
WebCasts

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Report Error:
Home > Search > Sample Chapters > C-Sharp
Treeview nods Different Color using c#.net       
Total Hits: 439  |  Today: 0 Author: Lalji       Rating:  
Read Reviews | Write Review |              Your Rating: 

1. Open Visual Studio.NET 2005 editor and create a new C# Windows project
2. Open Form1 in designer mode
3. Drag and drop a TreeView control on the Form1
4. Add few nodes to the TreeView control(use the property Nodes to add nodes)
5. Set the property DrawNode of the TreeView control to OwnerDrawText
6. Add the following code to DrawNode event of the TreeView control and execute the project. That's all you see selected nodes in red color.

If you would like to report an error or update for this listing please complete the form below.
Note: a Valid email is required for update request

Error/Update Type:   *
Description:
(Optional)
Your Name:   (Optional)
Your Email Address:   (Optional)
   

<< Back to listing

DevASP - Privacy - Disclaimer
Copyright © 2008 DevASP.com