Aller au contenu principal

Cast Obj to IList - Form List Box

Commentaires

2 commentaires

  • Kevin Penner

    I recently used a combobox to select a value and used String.Format("{0}", selectedObject) to put the selected value into a string after the form was closed.

    If the selection type is multiple, you can cast the result to a List<Object> and then go through each object in the list doing a String.Format("{0}", objectValue) to get the selected string value.

    -Kevin

    0
  • Permanently deleted user

    Kevin,

    That worked, thanks. Was using a single selection list box, so your suggestion worked perfectly.

    Walter

    0

Vous devez vous connecter pour laisser un commentaire.