Solved

How can I show a rectangle in a treeview checkbox?

Posted on 2006-11-26
3
244 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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