I'm shopping around for a dropdown list control that allows me to select multiple items. Something akin to the CheckedListbox, but in dropdown list form (I don't want it to take up a big chunk of the screen). At this point I'm pretty convinced there is no such control built-in .NET.
Note this is Winforms, not ASP.NET. Any suggestions?
Check out this project on CodeProject:
There is yet another fix:
The above solution is correct to fix the first issue, where it required two clicks to enter the list of checkboxes, however, this introduces a new issue when you click the control to exit it, it retains focus and you must double click to go to another control. I was able to fix this with the following code:
In CheckBoxComboBox.cs add the following override:
protected override void OnClick(EventArgs e) { base.OnClick(e); this.Parent.Focus(); }
With the answer from Rob P. and this answer, it will not hold focus on either click event.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With