What you want to see on DotNetFunda.com ?
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 30039 |  Welcome, Guest!   Register  Login
 Home > Forums > C# > create a node in c sharp ...
Mahee87

create a node in c sharp

Replies: 1 | Posted by: Mahee87 on 10/24/2012 | Category: C# Forums | Views: 241 | Status: [Member] | Points: 10  


hello sir,
please tell me how to create a node in c# with color.it will be useful for my project.reply me as soon as possible


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Naraayanan
Naraayanan  
Posted on: 10/24/2012 10:04:24 AM
Level: Starter | Status: [Member] | Points: 25

Hi,
try this code
TreeNode treeNode = new TreeNode("Windows");

treeView1.Nodes.Add(treeNode);
treeView1.ForeColor = Color.Brown;
treeNode = new TreeNode("Linux");
treeView1.Nodes.Add(treeNode);
TreeNode node2 = new TreeNode("C#");
TreeNode node3 = new TreeNode("VB.NET");
TreeNode[] array = new TreeNode[] { node2, node3 };
treeNode = new TreeNode("Dot Net Perls", array);
treeView1.Nodes.Add(treeNode);


Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Mahee87, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 8:20:52 AM