create a node in c sharp

Posted by Mahee87 under C# on 10/24/2012 | Points: 10 | Views : 879 | Status : [Member] | Replies : 1
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




Responses

Posted by: Naraayanan on: 10/24/2012 [Member] Starter | Points: 25

Up
0
Down
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. | Alert Moderator

Login to post response