Treeview with checkboxes?

  • Thread starter Michael A. Covington
  • Start date
M

Michael A. Covington

Can somebody point me to an example of how to put checkboxes on a treeview?
I want to set up something that is very much like the way tape backup
programs let you select a set of files and/or directories. Thanks.
 
M

Morten Wennevik

Hi Michael,

I did just the thing for selecting wich directory to search for certain files.

The putting checkboxes inside a TreeView is very simple as the TreeView has a CheckBoxes property. However, it only has two states so it won't reflect partially selected sub directories, if you had that in mind.
 
M

Michael A. Covington

Morten Wennevik said:
Hi Michael,

I did just the thing for selecting wich directory to search for certain
files.

The putting checkboxes inside a TreeView is very simple as the TreeView
has a CheckBoxes property. However, it only has two states so it won't
reflect partially selected sub directories, if you had that in mind.

Ah! One of the frequent unexpected delights of .NET is finding that things
like this have been done for you.

I'll figure out a way to indicate partially selected items somehow. Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top