c# - how can I find out which items are selected in checkedlistbox? -
i have checkedlistbox in c# language, want have multiselection,
but problem when type checkedlistbox.selecteditems , contains properties of last selected item.
whats solution ?
you need set selectionmode of checkedlistbox multisimple
or multiextended
enable multiple selection.
various modes -
- one - 1 item can selected.
- none - no items can selected.
- multisimple - multiple items can selected.
- multiextended - multiple items can selected, , user can use shift, ctrl, , arrow keys make selections
edit
you can't set multiple selection checkedlistbox per msdn -
the selectionmode property determines whether 1 item in list box can selected or no items can selected. checkedlistbox objects, multiple selection not supported. can set mode 1 item or no items.
even tried setting , stated throws argumentexception @ runtime -
Comments
Post a Comment