how to write an array into list box?
anyone know the coding to write an array into list box?
# 2 Re: how to write an array into list box?
lstBox.Items.AddRange(myArray)
thanks~
but how to use the the array value from the first form- to be populated in the second form?
do u have any idea?
# 3 Re: how to write an array into list box?
I would add a public method to the form containing the listbox:
Public Sub PopulateListbox(ByVal items() As Object)
lstBox.Items.AddRange(items)
End Sub
and call it from the first form:
frmTwo.PopulateListbox(myArray)