Hello There,
Im trying to create tree control view with check box in the nods.
but i dont know how to add the check box to the nods
here is the code:
public Form1()
{
InitializeComponent();
TreeNode tn = new TreeNode("x");
tn.ForeColor = Color.Blue;
TreeNode tn1 = new TreeNode("Y");
tn1.ForeColor = Color.Blue;
TreeNode tn2 = new TreeNode("T");
tn2.ForeColor = Color.Blue;
treeView1.Nodes.Add(tn);
treeView1.Nodes.Add(tn1);
treeView1.Nodes.Add(tn2);treeView1.LabelEdit = true;
}
How can i add the check boxes to the nods X,Y,T
Thanks ahead