DropDown list with checkboxes
.net, vb.net, windows, winforms
Solution
The easiest way to create this effect is to use three controls — an edit, a button (to the right of the edit, with a drop down icon) and a checkboxlist as you're using now.
Position the checkboxlist under the edit so its width is the same as the edit and the button next to the edit, and make it invisible. Now, add code to the button to:
Make the checklistbox visible if it is not visible and to make it not visible if it is visible (that is, flip the value of .Visible).
Call code to create a "summarized" version of what was checked and not check and display it in the edit. For instance, if your "dropdown" contains color names, you might have your code create a comma-delimited list of the checked colors and display that in the edit.
You can take this a little further and put the checkboxlist into a panel container and add little buttons to the "dropdown" to execute whatever special functions might be appropriate in your application (check all, uncheck all, whatever).
Problem
How can i make a dropdown list with checkboxes ? I have a windows app ( vb.net) and the checkboxlist control is not real an option with the available space on my form. Thanks.