473,902 Members | 5,024 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there a drop down combo with multi check box

Hi,

I want to have a single line combo box dropdown, but where i can selected
multiple items in the drop down via a check box...

I can see one in the standard tool box... is there one ?

If not any suggestions as to where to get one from.
Thanks
Nov 21 '05
17 14843
David,

"david" <da***@woofix.l ocal.dom> schrieb:
a drop-down combobox with checkable items is a
*wonderful* idea
Not for standard Windows Forms. In Windows, the combobox closes after an
items is selected by the user. If the user should have the possibility
to
select more than one item, the dropdown part of the control must remain
opened to provide a good user experience. However, this would lead to
/inconsistent/ behavior between the set of controls provided by Windows.


Obviously this is /nonstandard/ behavior by the simple tautology of it
not being a built-in control, but as long as you provide strong visual
feedback, I don't see the inconsistency.


I agree with you -- but then I would not consider the control a combobox
:-). It's actually possible to build custom controls providing a drop-down
or popup window. The following article describes how to do that:

Use .NET Forms as Popup Windows
<URL:http://vbaccelerator.c om/article.asp?id= 13309>
Yes, it doesn't behave like a
single-select dropdown, but if you provide strong enough visual clues,
no user expects it to.

For example, this is becoming a fairly common control in data analysis
packages, and I've seen it in most OLAP tools I've seen.


There is a similar control used for programming language filtering in the
(locally installed) MSDN documentation. The main problem I am seeing with
introducing such a control is that the user is not able to see which items
are selected without seeing the dropdown part containing the checkboxes.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #11
On 2005-09-17, Herfried K. Wagner [MVP] <hi************ ***@gmx.at> wrote:
There is a similar control used for programming language filtering in the
(locally installed) MSDN documentation. The main problem I am seeing with
introducing such a control is that the user is not able to see which items
are selected without seeing the dropdown part containing the checkboxes.


True, but the alternative is to tell the user "I can't provide multiple
selections unless you allow me to display the complete list at all
times." Or you could show just the selected items in some way, but even
that gets onerous (I have a webcontrol that acts this way and I show the
selections in the tooltip, but it's often not easily readable). Neither
solution is reasonable for multiple selections within large datasets.

Nov 21 '05 #12
On 2005-09-17, Aussie Rules <so*****@somewh ere.com> wrote:
If i understand what you saying, then you mean to have in my menu, and
number of items which the end user can select.

If I understand correctly, then I can not see how that could work, as the
items in the drop down are a list of peoples names, and for some end users
that list could be up to 30 people(all with nice long EU names... go the
greeks!!!)...

If I do not follow what your saying, perhaps you could point me in the right
direction.


No, you're following what I'm saying. Personally, I really dislike
putting anything but menus in the menu bar. I'd probably use a scrolling
menu of checked menu item, and make the first item an option to pop up
a dialog box (also, I might consider submenus).

After all, your dropdown combo is going to take up just as much room on
the screen.

But anyway, as to your original question: no, there's no built-in
control to do this. You'll have to create your own or find a
third-party control. A quick google search popped up a few sample
projects, but unfortunately I don't know of a professional version
of this type of control that's available.
Nov 21 '05 #13
Steve,
holy shit! you hit the nail on the head!!! i've been asking you to stop
posting your "solutions" for YEARS!!! your solutions are either links to
other people's code, a snippet of msdn code, or something not even
applicable. NEVER once have i seen you post your own code as a solution to
someone's request for help!!! never...so, yes, quit now...please!

One of the first days I came in this newsgroup I wrote that it is in this
business not important to know how, however to know how to find something.

Hefried is a master in that. That is not possible without any knowledge
about what you find. These newsgroups should be as well for Herfried a
method to learn.

Giving the solutions from others is in my opinion a good way to help other
people and to see them yourself. Herfried is very good in that, you cannot
blame him for this and please let us not force him not to do that, he helps
with that a lot of people.

Yesterday I saw that he gave a solution where he wrote. "By Herfried K.
Wagner".
That confirms what you wrote, however my experience in discussions is that
he is well able to do more than that one.

Keep as well in mind that he, some others and I are writing a lot in these
newsgroups.
That gives errors in writing, misunderstandin g etc etc.

As last, the way Herfried is writing now in this newsgroup is not the
Hefried from 2 years ago. He has learned in my opinion a lot, not only about
the subjects, however too about how to behave. One of the things I am hoping
is that he will understand some humour in future. Than I am able to answer a
sentence, that Herfried wrote like this in this thread.

"I have studied User Interface Design and Human-Computer Interaction for
several years..." with "Are you living on the planet of Apes?

Just my personal opinion.

Cor

Nov 21 '05 #14
Aussie,

For me you are just asking for a multiselect listbox. A standard control in
Net.

A combobox has to show the item in the combotextbox. A little bit silly to
try to do that if you have selected more. In addition even if you want that,
than that would be a usercontrol with a textbox and a listbox.

I hope this helps,

Cor
Nov 21 '05 #15
Herfried,
I can understand your frustration because you hardly ever get any positive
feedback.


Why is this needed?

Cor
Nov 21 '05 #16
A simple solution would seem to make the listbox visible or not visible via a
button for "Select People". When visible, the user can select multiple
people then when finished, make the listbox invisible!

As for Herfried and anyone else postings, the guy STEVE doesn't have to read
the postings. I get a lot of information from Cor, Herfried, and Ken who
often quote links but also often post direct code. I get a lot of learnings
from all of these guys but haven't learned much from Steve's postings. As a
matter of fact, I don't see him answering many questions on this news group.

--
Dennis in Houston
"Cor Ligthert [MVP]" wrote:
Aussie,

For me you are just asking for a multiselect listbox. A standard control in
Net.

A combobox has to show the item in the combotextbox. A little bit silly to
try to do that if you have selected more. In addition even if you want that,
than that would be a usercontrol with a textbox and a listbox.

I hope this helps,

Cor

Nov 21 '05 #17
| you hardly ever get any positive feedback.

lol herf...i don't often post here...how would you know my behavior,
responses, accolades, etc.?

as far as your self-perception...th e ty's you get are from relatively noob
..net-sters who appreciated the *link to someone else's solution*. having a
mastery of google does not an mvp make nor a resume build. i still have yet
to find you offering code of your own making that addresses even a mildly
difficult problem with any degree of success...and where *that* gives you a
ty.

but anyway, over-estimation seems a good forte for you.
Nov 21 '05 #18

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

Similar topics

1
3460
by: Dec | last post by:
Ok to simplify things I'll just give an example. This is pretty much what I want to do (minus the postcode): http://www.perrys.co.uk/usedcar?ID=F5J9BNNBMVK00DF I have relatively little experience with databases (hate being a n00b) but I'm currently attempting to put myself through some sort of crash course.. How far have I got? Ok so using MS access 2003. I have a table (table1) with data with a
5
4316
by: Paul | last post by:
I have read the posts on using Sendkeys to dropdown the list in a combo box. However, doesn't that require the combo box to have the focus? My situation is a little different. I have a text box and on the BeforeUpdate of that text box I check a value. If the value > 0, then the text box is OK and the program can continue. If the value = 0 or null, I want a combo box to drop down. For simplicity here are the control names:
2
9480
by: kmnotes04 | last post by:
Is it possible to link one drop-down box to another? For example, if a name is chosen from a drop-down list, can another drop-down list then automatically display the person's office as a result of the choice made in the first drop-down list? If so, how can that be done? I am working with 'Teach Yourself Microsoft Access' and I didn't see it discussed in that book (if it's even possible to do). Or would I just have to create linked tables...
1
1996
by: It's Shroff | last post by:
I apologize in advance if I'm posting the wrong groups, but I have a general UI problem in my Windows apps that I'm wondering how other people may have solved. I am using VB.NET to devlope this application. I can't think of a way to succinctly describe my problem right now, so I'll just give you a simple example:
3
1738
by: Eric | last post by:
I have a requirement for a multi-select list, but it must appear as a drop down. I cannot find any properties on the ListBox control, nor any google hits on how to accomplish this. Anybody have an pointers? Thanks, Eric
7
2447
by: callawayglfr | last post by:
I am building a database in access where I have a drop down box that relates to a text box, that part I have working but when someone selects information from the first drop down I need it to limit the second drop down to just the related information. Explaining this is obviously challeging. So I'll try to draw a picture: (drop down 1) Select number --- once selected description is populated in text box (drop down 2) based on first...
5
12266
by: Ajith Menon | last post by:
I need to select multiple entries in the drop down list. E.g. Search a string in languages like C#, VB, Java etc. These entries are in drop down. So i need to multi select to search in multiple languages 1. One of the option could be to have a check box beside each entry in drop down. Do any one have an idea how to do this. Solution in C# is required but even if its unmanaged code is OK.
2
1922
by: shaznay2 | last post by:
I need some help! I'm trying to set up two drop down menus where the first displays the Department and the second displays the names of the printers found in the department. So far i have two tables, one called tbldepartment and the other called tblname. Tbl department has 2 fields in it which are ID and department name(i've set ID to autonumber and it is the primary key). Tbl name also has two fields in it which are IDTab and name(ID...
30
26572
ADezii
by: ADezii | last post by:
This week’s Tip of the Week will clearly demonstrate how you can dynamically set the Drop Down List Width of a Combo Box to the length of the longest item in its Row Source. The inspiration for this Tip came from one of our own resident Experts, mshmyob. In response to a Thread relating to this very Topic, mshmyob came up with a rather ingenious method to accomplish this task. He computed the Average Character Width of a String consisting of...
0
9845
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11279
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10870
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
10499
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...
0
9673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7205
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
5893
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4725
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
4306
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.