473,385 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Combo that displays tree.?

Hi all
I'm looking for a Combobox that displays tree.
Does anyone has a source code for that???
thanks in advance
May 19 '07 #1
1 2154
On Sat, 19 May 2007 05:56:53 -0700, perspolis <re*****@hotmail.comwrote:
Hi all
I'm looking for a Combobox that displays tree.
Does anyone has a source code for that???
I'm not aware of any example code you could use, and frankly it sounds
like an unreasonably different variation of a ComboBox to justify using
the ComboBox as a base. The list in a ComboBox is for picking an item
from a list of unique items to use for the single text value for the box.
On the other hand, one classic feature of a tree view is that you can have
the same item multiple times, uniquely distinguished by being in different
sections of the tree.

I think there are ways around this from a user-comprehension point of
view. For example, the value used when the user selects something from
the tree could be the aggregrate of not only the item the user selected,
but all of the parent nodes leading to that item. That way the text value
always corresponds exactly to a single item within the tree.

But even if you resolve that issue, since the base ComboBox doesn't draw
trees, you'd have to override all of the painting somehow and do the tree
yourself (and I admit, I haven't even looked closely at what you'd have to
do to override the painting...combo box controls are a little funny,
because they usually involve more than one actual control, and I assume
the .NET version is the same).

You may find it makes more sense to just use a TreeView control along with
a regular TextBox control. Handle the synchronization issues yourself,
which aren't very hard at all, and let the two controls do the hard work
of managing the visual aspect of the UI.

Pete
May 19 '07 #2

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

Similar topics

4
by: Heather | last post by:
Hi I am desparately looking for advice in relation to storing the results after selecting items from two combo boxes on a Referral form. The first combo box 'ctl Type' displays a full list of...
4
by: Giulio | last post by:
Hello, I have a continuous form with a combo box inside. From the combo box I can pick some values which, by the "after-update" event, change some other combo box values determined by a query....
0
by: Aravind | last post by:
Hi folks. I am using Access 97. I have a form, frmHistory, which has 2 combo boxes (cboSelectTitle and cboSelectName) and 2 text boxes (Title and MemName). When the form is opened, it displays...
1
by: Daniel | last post by:
Hi there, I've been having a problem with binding to a combo box. I'm binding to a third party dataset table view. When on the selected tab page and you click a certain tree node it will fire a...
2
by: SoftWhiteDelgiht | last post by:
Help me. I am obviously stupid! :-) I am just starting out with VB.Net and am trying to do a simple master/detail form with a SqlServer backend. I have created a combo box which is to populate with...
14
by: Gary Shell | last post by:
I have five comboboxes each has a item listed populated by hand in the IDE. Each has the text property bound to a text field in the database. When I initially fill the dataset and display the page...
8
by: AA Arens | last post by:
Hi I do have a products table and products-parts table in my Access 2003 database and log all services into a form. I do have at least the following two combo boxes on my form: - Choose...
2
by: biganthony via AccessMonster.com | last post by:
Hi, I decided to install Office 2003 Service Pack 3 on my home computer to test (in full knowledge that there may be some issues with it). After installation, I have noticed that with a small...
2
by: fredloh | last post by:
i have a table with a yes/no field call "Edited". i have a button that runs code to set the "Edited" field of a selected record to "yes". the code also set the rowsource (using SQL Update and Set...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.