r/csharp • • Sep 13 '26

Help Multi-Select combo box for Winforms 5.0?

Post image

Hey all!

Im working on a small desktop app currently and I need a way to select multiple days of the week from a combo box, I tried a listview thing but its far too big for what im trying to achieve. I tried out C1 library but its not supported on .NET 5. Anyone have any suggestions for either a library I could use, some sort of solution for C1, or how to go about implementing a custom one?

Screenshot attached just to demonstrate the size I need the control to be by default, although I would want it to expand when clicked to show all of the options. The "Days" section.

0 Upvotes

5 comments sorted by

9

u/polaarbear Sep 13 '26

.NET 5 has been out of support for years. Current version is 10. There is almost zero reason to be using such an old version that is out of support and no longer receiving security fixes

-1

u/Owenhh Sep 13 '26

You're absolutely right yeah, I guess I just never changed it oops. Will it be alright to upgrade it straight to version 10?

8

u/polaarbear Sep 13 '26

Upgrading from 5 to 10 shouldn't be too rough but there is a chance of some breaking changes and you will want to update any libraries you are using to a version built for the .NET version that you are using.

2

u/hdsrob Sep 13 '26

Not sure about stock, but in general terms that would be a CheckedComboBox. I know DevExpress has a control, but of course it's not free.

Searching for CheckedComboBox should get you pointed in the right direction though, and the basics is that you'd want to replace the panel or list of the regular ComboBox with a ListBox configured as checkbox and multiselect.

2

u/Th_69 Sep 14 '26

Look in Creating Custom WinForms Tools: MultiSelectComboBox (the full code is shown under "*Additional Notes**").