Link to home
Start Free TrialLog in
Avatar of jackjeckyl
jackjeckyl

asked on

Is it possible for only children of a treeview to have checkboxes?

Code example please...
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
1. you will need to set the treeview properties so that each node can display an image.
2. add an imagelist control to your form
3. add two pictures to the imagelist's picture collection.  One picture will be a square.  The other picture will be a square with a check.
4. When you add a child node, set the image index = empty-square picture index.
5. When the user double clicks the node, change the image index of the node = checked picture index.
Avatar of jackjeckyl
jackjeckyl

ASKER

Good idea, but not what I wanted.  Thanks.
What do you want?
jackjeckyl,

You've accepted emoreau's comment as the solution to your problem, yet your most recent comment indicates that this is not an acceptable solution.  What more do you need?

emoreau described it. I detailed it.  It's up to you to do it (now).

I accepted the comment meaning thats what I'd pursue thinking you can't have just straight checkboxes in children.  I wanted true checkboxes, not pictures of checkboxes.  As to follow up, how am I supposed to change all the children to "checked boxes" if someone clicks on the parent and changes that image to a checkbox?  In other words, If you change a parent to a checked box image, all the children have to have checked box images...
Never mind, I got it.