?
Solved

How can I show a rectangle in a treeview checkbox?

Posted on 2006-11-26
3
Medium Priority
?
251 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 1000 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

Congratulations! You’re Certified – Now What?

Starting a new career can be overwhelming. Becoming certified in your field of expertise is a great start, but where do you go from here?  Here are some tips to help you on your career journey.

Question has a verified solution.

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

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…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

766 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