How can I show a rectangle in a treeview checkbox?

Hi,

When I have an sub item check and it's parent unchecked, I want the parent to show a green rectangle in the checkbox (in the place of the check mark, like it's the case in VS.NET installation), Here's a picture of what I'm talking about:

http://www.codeproject.com/cs/miscctrl/treeviewadv/treeviewadv3.png

Thanks.
i950Asked:
Who is Participating?
 
ozymandiasConnect With a Mentor Commented:
Here is an example that shows you how to do it : http://www.codeproject.com/useritems/ThreeStateTreeView.asp
0
 
ozymandiasCommented:
This would require a tri-state checkbox in the ListViewItem and I do not believe this is possible.

You could try writing your own ListViewItem.
0
 
ozymandiasCommented:
Sorry, that should be TreeNode, not ListViewItem.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.