ListBox Multiple Selections

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?R3VzIENodWNo?=

    #1

    ListBox Multiple Selections

    I have a ListBox with the SelectionMode set to MultiSimple.
    How can I iterate thru it using a for next loop to fill an array?
    Listbox
    For
    Row 1 = Array(1)
    Row 2 = Array(2)
    Next
    And so on.

    --
    thank You
  • =?Utf-8?B?S2VycnkgTW9vcm1hbg==?=

    #2
    RE: ListBox Multiple Selections

    Gus,

    Are you trying to copy the listbox's selected items to an array? If so, you
    can do this:

    Dim SelectedItems(l istbox1.Selecte dItems.Count - 1) As Object

    listbox1.Select edItems.CopyTo( SelectedItems, 0)

    Kerry Moorman


    "Gus Chuch" wrote:
    I have a ListBox with the SelectionMode set to MultiSimple.
    How can I iterate thru it using a for next loop to fill an array?
    Listbox
    For
    Row 1 = Array(1)
    Row 2 = Array(2)
    Next
    And so on.
    >
    --
    thank You

    Comment

    Working...