473,734 Members | 2,824 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is TreeView what I need?

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

Aug 22 '06 #1
2 1623
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
Aug 22 '06 #2
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

en*****@yahoo.c om wrote:
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
Aug 22 '06 #3

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

Similar topics

0
1535
by: Ravi | last post by:
i tried with MS treeview control but i am unable to implement all the requirements.This requiement like when user login will generate the menu and display it. After that we need to Add or remove the nodes from the tree from client side. 1.Selected node should be highlighted and non active. 2.some group of pages related to same category EX : registration process Aggrement,userinformation,login information and
4
7598
by: Ian Powell | last post by:
Hi I've got objects in an sorted ArrayList like: P:\ P:\\DOCS P:\\i386 P:\\i386\ASMS P:\\i386\ASMS\1000 P:\\i386\ASMS\1000\MSFT
8
14273
by: Don Wash | last post by:
Hi There! I'm using VB.NET to create a TreeView application and unfortunately I could not find "Key" property in Node items of the TreeView. We used to have "Key" property in TreeView node object in VB6. What is the equivalent of "Key" property of TreeView node in VB.NET? Has the property name "Key" has been changed to something else? Or VB.NET does not support the "Key" property anymore? If so what are the alternatives?
2
2679
by: kevin | last post by:
I would like to remember the state of the nodes after the treeview gets disposed, but not necessarily after the app terminates so I don't need a disk file. I was thinking about using the tag property, but I am already using it, so then I though about making a custom treeiew using inheritance and adding another tag type property? Any clues? kevin
1
1881
by: pooja | last post by:
i need to implement drag and drop in treeview in VB. Kindly help. My treeview contains activities maintained using XML Files. Hopefully, Thanks.
8
12772
by: Matt MacDonald | last post by:
Hi All, I have a form that displays hierarchical categories in a treeview. Ok so far so good. What I was to do is have users be able to select a node in the treeview as part of filling out the form. I only want to allow single selection, so using checkboxes is out of the question. It works as is, but it makes the form very cumbersome if every time that a user selects a node, the whole page has to reload. Is there a way to have a node...
0
1297
by: Erland | last post by:
Hello all, I have just installed visual studio .net 2005 and started developing programs in asp.net 2.0. I have a scenerio where I have to populate treeview child nodes based on the entries being entered in textbox,but there is this thing I need to consider. Values in treeview nodes should be populated as nodes, all child nodes in this case, as soon as vales are being entered in textbox. That is to say, if I enter H in textbox then H...
2
1573
by: rolf.oltmans | last post by:
Hello all, I need to place treeview control in Grid control. I need to place it in a grid because I need to show calendar against every node. Is placing a treeview in grid possible? If I need to create my own control that would include capabilities of both treeview and Grid what would I have to do? Being new to asp.net I guess I've to make a control that would inherit from treeview and grid. But would changes I've to make in my...
2
1455
by: casManG | last post by:
I am working on a small project that uses the treeview control in vb.net 2003. I have a tree view that I am sending to a sub in order to iterate through the nodes. Public Sub test (ByVal inTreeView as Tree View) But, the thing I want to do with the inTreeView requires me to expand all the nodes before I iterate. The problem is that when the sub is complete, the original tree view on my form ends up with all of the nodes expanded I had...
0
8946
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9310
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9184
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6737
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6033
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4813
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3262
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 we have to send another system
2
2729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.