Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding checkboxes to a treeview

Status
Not open for further replies.

wrexhamafc234

Programmer
Oct 23, 2006
18
GB
What would be the best way of adding a checkbox to each element of a treeview?
 
Set the ShowCheckBox property to True on the TreeNode


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
thanks for that, by adding the following line, it adds the checkboxes:

Code:
TreeView1.ShowCheckBoxes = TreeNodeTypes.All;

Another small problem with these checkboxes, is there any way of doing the following:

If a parent checkbox is clicked, all child node checkboxes will be automatically checked?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top