Create tree view
-
Hi This is Indresh I am new in C# I want to create a tree view of the form controls. With the each node I want to display a check box. By clicking on the check box I want to enable and disable the controls. Hierarchy should be like this Container form child form1 control1 control2 child form2 control1 control2 child form3 control1 control2 Sorry for bad english Tanks in advance
-
Hi This is Indresh I am new in C# I want to create a tree view of the form controls. With the each node I want to display a check box. By clicking on the check box I want to enable and disable the controls. Hierarchy should be like this Container form child form1 control1 control2 child form2 control1 control2 child form3 control1 control2 Sorry for bad english Tanks in advance
-
Hi This is Indresh I am new in C# I want to create a tree view of the form controls. With the each node I want to display a check box. By clicking on the check box I want to enable and disable the controls. Hierarchy should be like this Container form child form1 control1 control2 child form2 control1 control2 child form3 control1 control2 Sorry for bad english Tanks in advance
suppose your treeview name is treeview1. use treeview1.nodes.add(your desired form name); for child node : treeview1.nodes[index].nodes.add(your control name); from the treeview1 property true the value of checkbox property. handle the afterselect event and check whither the e.Node.Checked return true or false. Then take necessary action as you want