Is TreeView what I need?

E

engwar1

I'm a .Net newbie and have started writing a Windows Forms application
to assist me in choosing files/directories to move from one drive to
another.

Basically what I want is something like the TreeView control and have
the following questions.

+ I'm not sure if it's possible to include a checkbox control as part
of a TreeView. Do I need to use images of a checkbox in my ImageIndex
property? I'd imaging I'd need 4 images of directories along: One as
unselected checkbox closed directory, selected checkbox closed
directory, unselected checkbox open directory, selected checkbox open
directory.

+ The TreeView control doesn't support selecting multiples. I guess I
need some sort of workaround for this as I want to select multiple
directories and files. Any input here?

So is TreeView what I need for this or should I write something from
scratch to be able to use checkbox controls? Or can I tie checkbox
controls to a treeview control?

Thanks
 
M

Marc Gravell

The TreeView has a .CheckBoxes property for the one requirement; I can't see
a multi-select capability, though. If you are a .Net newbie, I wouldn't
recomment writing a complex control from scratch - maybe google it first -
you might find some open source GUI winforms replacements that do what you
need.

Marc
 
G

Grant Frisken

If you are open to a commercial component then check out Infralution's
Virtual Tree. It supports multiple selection, drag and drop and
embedding any windows forms control (including checkboxes) as editors.

You can get more information and download an evaluation version at:

www.infralution.com/virtualtree.html

Regards
Grant Frisken
Infralution
 

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