Zum Hauptinhalt gehen

Cast Obj to IList - Form List Box

Kommentare

2 Kommentare

  • 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

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.