473,487 Members | 2,474 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Treeview with checkboxes?

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.
Jul 21 '05 #1
2 1746
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.
On Sun, 29 May 2005 15:48:44 +0200, Michael A. Covington <lo**@ai.uga.edu.for.address> wrote:
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.


--
Happy coding!
Morten Wennevik [C# MVP]
Jul 21 '05 #2

"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:op.srjkzyqcklbvpo@stone...
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!
Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
6253
by: Trevor | last post by:
How can I recursively loop through _every_ TreeNode in a TreeView using C#? The CheckBoxes property enables checkboxes for all TreeNodes. I only want checkboxes on TreeNodes that have 0 child...
1
3243
by: nicholas | last post by:
I am using Obout TreeView: www.obout.com I would like to implement a page to add and remove categories to a product with the Obout Treeview with checkboxes. Does anyone allready did this and...
2
21971
by: Jack | last post by:
Hello, I am trying use a TreeView with checkboxes. I would like to check more than one node and allow all child nodes of selected nodes to be checked or unchecked with the parent is checked. ...
2
292
by: Michael A. Covington | last post by:
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...
1
3303
by: Mark | last post by:
Hello, I am using the new TreeView in ASP.Net 2.0. I am using its PopulateOnDemand feature. The problem is that the treeviews +/- images, and any checkboxes, have the tooltip set. If the node...
1
3634
by: Victor Rodriguez | last post by:
Is there a way that I can have a client side event like oncontextmenu="showfunction();" on each node? thanks, Victor
1
5012
by: japi | last post by:
Hi all, I have a TreeView control in my ASP.NET 2.0 Web application with checkboxes enabled. I would like to generate a postback when a user ticks or unticks a checkbox. As far as i know,...
0
1230
by: Wudi008 | last post by:
Hi, I am using C#, I have a treeView in my windows.form , I want to give checkboxes for some nodes in the treeView but not all of them. If i do treeView.checkbox = true, all the nodes would have...
1
2010
by: =?Utf-8?B?VHJlY2l1cw==?= | last post by:
Hello, Newsgroupians: A quick question regarding checkboxes and a treeview. I have a treeview that has the property CheckBoxes. However, I'm also trying to handle the event NodeMouseClick. I...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
3076
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1381
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.