views:

559

answers:

3

Hi how to retrieve checked list box value in win forms application using c# ?

just like in asp.net li.selectedvalue and li.selectedtext

is there any methods like this to get value and text individually?

Regards, Nagu

+1  A: 

SelectedItem is the closest to what you're looking for, but since it's an object you have to cast it to the type of the items you put in the listbox to get additional properties.

pb
+1  A: 

If you are using the CheckedListBox control, you have the CheckedItems property.

CMS
A: 

how do you cast it pls?

david lebee