Solved

How can I show a rectangle in a treeview checkbox?

Posted on 2006-11-26
3
230 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
ID: 18015352
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
ID: 18015378
Sorry, that should be TreeNode, not ListViewItem.
0
 
LVL 15

Accepted Solution

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

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
A short film showing how OnPage and Connectwise integration works.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

932 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

13 Experts available now in Live!

Get 1:1 Help Now