In effect, you are calling ToSting() on each Object within the
ObjectCollection... not pretty, but workable.

Thanks for the update.

On Jul 2, 10:13 am, yogesh gaidhane <[email protected]> wrote:
> OK I have done it like this
>
> ' All items selected in a listbox in the form of
> ListBox.SelectedObjectCollection
>         Dim selectedItemsValues As ListBox.SelectedObjectCollection
>         ' All items selected in a listbox
>         selectedItemsValues = listFileExtensions.SelectedItems
>         ' Count all selected items
>         Dim selectedItemsCount As Integer = selectedItemsValues.Count
>         'Dim listItems As String
>         Dim ii As Integer
>         For ii = 0 To selectedItemsCount - 1
>            MsgBox(selectedItemsValues(ii))
>         Next
>
> MsgBox will display all selected values from ListBox
>
> Thanks,
> Yogesh

Reply via email to