472,805 Members | 2,058 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 #1
17 14706
"Aussie Rules" <so*****@somewhere.com> schrieb:
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.


No, there is no such control. From a usability perspective comboboxes are
not suitable for the functionaliy "selection of m items out of n". I
suggest to use a CheckedListBox control or a ListView control with
checkboxes enabled instead.

Note that there are some groups devoted to .NET Windows Forms development in
the "microsoft.public.dotnet.framework.windowsform s" group hierarchy, for
example "microsoft.public.dotnet.framework.windowsforms.co ntrols", where
discussion focuses on Windows Forms control development.

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

Nov 21 '05 #2

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OL*************@TK2MSFTNGP12.phx.gbl...
| "Aussie Rules" <so*****@somewhere.com> schrieb:
| > 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.
|
| No, there is no such control. From a usability perspective comboboxes are
| not suitable for the functionaliy "selection of m items out of n". I
| suggest to use a CheckedListBox control or a ListView control with
| checkboxes enabled instead.

again herf, you offer only oppinion that is blanketed by lack of ui
development experience. a drop-down combobox with checkable items is a
*wonderful* idea when one is simply limited by screen real-estate...i.e.
handhelds and smaller screened devices like toughbooks or other touch screen
interfaces for pos development, etc..

a more helpful comment would have been to suggest inheriting a
checkedlistbox or listview into a user-defined control so he can get what
he's describing. don't try to talk op's out of what they *want* to do with
what you *think* they should do!
Nov 21 '05 #3
"steve" <a@bc.com> schrieb:
| "Aussie Rules" <so*****@somewhere.com> schrieb:
| > 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.
|
| No, there is no such control. From a usability perspective comboboxes
are
| not suitable for the functionaliy "selection of m items out of n". I
| suggest to use a CheckedListBox control or a ListView control with
| checkboxes enabled instead.

again herf, you offer only oppinion that is blanketed by lack of ui
development experience.
I have studied User Interface Design and Human-Computer Interaction for
several years...
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.
when one is simply limited by screen real-estate...i.e.
handhelds and smaller screened devices like toughbooks or other touch
screen
interfaces for pos development, etc..
I was referring to standard Windows Forms. Sure, there are special cases
and user interface libraries designed for use in these cases should contain
appropriate controls with /consistent/ behavior.
a more helpful comment would have been to suggest inheriting a
checkedlistbox or listview into a user-defined control so he can get what
he's describing. don't try to talk op's out of what they *want* to do with
what you *think* they should do!


Sometimes it's better not to provide a solution...

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

Nov 21 '05 #4
On 2005-09-17, Herfried K. Wagner [MVP] <hi***************@gmx.at> wrote:
"steve" <a@bc.com> schrieb:
| "Aussie Rules" <so*****@somewhere.com> 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. 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. This is
probably because Excel has had this control type for years, and I
strongly suspect the Excel/Office team spends a lot of effort on UI
testing.

PS. I'm assuming a combobox in dropdownlist mode here.
Nov 21 '05 #5
Ok, I guess I should explain a bit further...

I have the dotnetbar menu which allows other control to be placed into the
menu bar..

I have the combo drop down box which does allow me to select a value and
then it closes.

The current combo shows a list of employees names. When you select a
employee it shows the calendar of that employee on the frm. I want to be
able to rather than just select one, select multiple employees at the same
time, so that I can show multi calendars so that the user can easily see all
selected peoples calendar to see who is available at a time, to book an
appointment.

The menu bar is in my UI design the best place to do this, and the current
version has the cbo box.I want the next version to simply update that
control into a drop down, multiselectable cbo box thingo..

I shall repost this ? for this control into the controls newsgroup..

Hope this clears this up.

Thanks

"david" <da***@woofix.local.dom> wrote in message
news:sl******************@localhost.localdomain...
On 2005-09-17, Herfried K. Wagner [MVP] <hi***************@gmx.at> wrote:
"steve" <a@bc.com> schrieb:
| "Aussie Rules" <so*****@somewhere.com> 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. 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. This is
probably because Excel has had this control type for years, and I
strongly suspect the Excel/Office team spends a lot of effort on UI
testing.

PS. I'm assuming a combobox in dropdownlist mode here.

Nov 21 '05 #6
| I have studied User Interface Design and Human-Computer Interaction for
| several years...

that never shines through now does it.

| > 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.

you *assumed* the context rather than addressing his question and giving a
solution that was even *close* to what he ask for.

| > when one is simply limited by screen real-estate...i.e.
| > handhelds and smaller screened devices like toughbooks or other touch
| > screen
| > interfaces for pos development, etc..
|
| I was referring to standard Windows Forms. Sure, there are special cases
| and user interface libraries designed for use in these cases should
contain
| appropriate controls with /consistent/ behavior.

why assume. this may be exactly the env. he's trying to get this to work
in...and you go and insult his intelligence by saying it's not a good
idea...without even asking about it!

| > a more helpful comment would have been to suggest inheriting a
| > checkedlistbox or listview into a user-defined control so he can get
what
| > he's describing. don't try to talk op's out of what they *want* to do
with
| > what you *think* they should do!
|
| Sometimes it's better not to provide a solution...

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!
Nov 21 '05 #7
On 2005-09-17, Aussie Rules <so*****@somewhere.com> wrote:
Ok, I guess I should explain a bit further...
....Answering backwards...
I shall repost this ? for this control into the controls newsgroup..
It really is more of a windows forms questions than a language
question.

I have the dotnetbar menu which allows other control to be placed into the
menu bar..

I have the combo drop down box which does allow me to select a value and
then it closes.

The current combo shows a list of employees names. When you select a
employee it shows the calendar of that employee on the frm. I want to be
able to rather than just select one, select multiple employees at the same
time, so that I can show multi calendars so that the user can easily see all
selected peoples calendar to see who is available at a time, to book an
appointment.

The menu bar is in my UI design the best place to do this, and the current
version has the cbo box.I want the next version to simply update that
control into a drop down, multiselectable cbo box thingo..


OK, I'm with Herfried. I hate the idea of a combobox in the menu. Why
not a simple list of checked menu items? If the item is checked, then
show the calendar for that person.

Nov 21 '05 #8
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.

Thanks

"david" <da***@woofix.local.dom> wrote in message
news:sl******************@localhost.localdomain...
On 2005-09-17, Aussie Rules <so*****@somewhere.com> wrote:
Ok, I guess I should explain a bit further...


...Answering backwards...
I shall repost this ? for this control into the controls newsgroup..


It really is more of a windows forms questions than a language
question.

I have the dotnetbar menu which allows other control to be placed into
the
menu bar..

I have the combo drop down box which does allow me to select a value and
then it closes.

The current combo shows a list of employees names. When you select a
employee it shows the calendar of that employee on the frm. I want to be
able to rather than just select one, select multiple employees at the
same
time, so that I can show multi calendars so that the user can easily see
all
selected peoples calendar to see who is available at a time, to book an
appointment.

The menu bar is in my UI design the best place to do this, and the
current
version has the cbo box.I want the next version to simply update that
control into a drop down, multiselectable cbo box thingo..


OK, I'm with Herfried. I hate the idea of a combobox in the menu. Why
not a simple list of checked menu items? If the item is checked, then
show the calendar for that person.


Nov 21 '05 #9
"steve" <a@bc.com> schrieb:
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!


The many "thank you"s I hear every day confirm me in my perception that my
replies are helpful. Objective criticism is always welcome because it can
help me to improve the help I provide.

However, what you are doing is obeying the rules of conduct and insulting
other people from time to time. I can understand your frustration because
you hardly ever get any positive feedback.

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

Nov 21 '05 #10
David,

"david" <da***@woofix.local.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.com/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*****@somewhere.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, misunderstanding 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...the 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
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...
5
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...
2
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...
1
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...
3
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...
7
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...
5
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...
2
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...
30
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...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.