Oct 25, 2006 #1 wrexhamafc234 Programmer Joined Oct 23, 2006 Messages 18 Location GB What would be the best way of adding a checkbox to each element of a treeview?
Oct 26, 2006 #2 ca8msm Programmer Joined May 9, 2002 Messages 11,327 Location GB 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. Upvote 0 Downvote
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.
Oct 26, 2006 Thread starter #3 wrexhamafc234 Programmer Joined Oct 23, 2006 Messages 18 Location GB 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? Upvote 0 Downvote
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?