Solved

How can I show a rectangle in a treeview checkbox?

Posted on 2006-11-26
3
229 Views
Last Modified: 2009-07-29
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.
0
Comment
Question by:i950
  • 3
3 Comments
 
LVL 15

Expert Comment

by:ozymandias
Comment Utility
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
 
LVL 15

Expert Comment

by:ozymandias
Comment Utility
Sorry, that should be TreeNode, not ListViewItem.
0
 
LVL 15

Accepted Solution

by:
ozymandias earned 500 total points
Comment Utility
Here is an example that shows you how to do it : http://www.codeproject.com/useritems/ThreeStateTreeView.asp
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now