Need ComboBox with multiple-select semantics (like ListBox) [Resolved]

Posted by Rmw256 under .NET Framework on 8/25/2013 | Points: 10 | Views : 1560 | Status : [Member] | Replies : 2
I've got a "simple" app (Windows Forms) in which I'd like to have a ComboBox (takes up one line) with a dropdown list (display multiple lines), but I'd like to be able to select multiple items (like a ListBox).

I've tried to "fake it" by designing a control with a ComboBox (with no entries) and an invisible ListBox with multiple lines that becomes visible when the ComboBox is clicked. This _almost_ works but other items on the form (Labels, RadioBoxes, etc.) show through the ListBox when it is made visible.

Any help would be appreciated.

Regards,

rmw256




Responses

Posted by: Bandi on: 8/26/2013 [Member] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
Refer the following links.. These might help you
http://www.codeproject.com/Questions/354086/Multi-Selection-inside-a-combo-box
http://www.nullskull.com/articles/20040416.asp


Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Rmw256, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rmw256 on: 8/26/2013 [Member] Starter | Points: 25

Up
0
Down
Thank-you. The first link pretty much parallels what I was trying to do with my "faking it". The second link provides some worthwhile input, though its "OnMouseEnter()" and "OnMouseLeave()" has the list collapsing if the user happens to move the mouse off the control (as opposed to actively clicking something to close it).

Regardless, it does have a couple useful ideas that I might be able to use and, coupled with info I received elsewhere, I think I can see a solution in sight. On the basis of that, I'll mark this "answered".

Rmw256, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response