Groups | Blog | Home
all groups > dotnet windows forms controls > june 2007 >

dotnet windows forms controls : Combobox with check items


Tasneem Jappie
6/26/2007 3:09:20 PM
I am searching for an example where a combobox is extended to contain
checkbox items. I've looked all day now, and so far the best links
are:

1) http://www.codeproject.com/useritems/CheckComboBox.asp
and
2) http://www.codeproject.com/combobox/checkcombo.asp

The first CheckComboBox example is almost exactly right, except for
the fact that I'd like to keep the drop down list open while the user
checks items. At the moment it collapses after an item is selected :-
(

The second CheckCombo example is really old and written in C++ but the
way it functions is PERFECT.

Please could somebody enlighten me on how to get the DroppedDown
property for a combobox to stay true while checking items. Ideally,
the list should collapse only when the user clicks outside the control
or clicks the dropdown button.

Thanks in advance,
T
Jeff Johnson
6/26/2007 4:56:10 PM
[quoted text, click to view]

I think you'll find the main reason that you aren't getting very many hits
is that most people consider this to be a very bad interface design. If you
have a SPECTACULAR reason to have a drop-down that doesn't dismiss on the
first selection, you're probably going to have to forget about extending the
combo box and just write a combo box replacement entirely from scratch.
Otherwise you should probably just re-think your design.

AddThis Social Bookmark Button