Treeview with checkboxes?

  • Thread starter Thread starter Michael A. Covington
  • Start date 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.
 
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.
 
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!
 
Back
Top