At the moment I have a listbox which contains several items.
On a button I want to "export" those items, add a number for each item.
I can see the numbers but the items are displayed as: system.string[].
1 system.string[]
2 system.string[]
3 system.string[]
What do I do wrong:
Thanks
On a button I want to "export" those items, add a number for each item.
I can see the numbers but the items are displayed as: system.string[].
1 system.string[]
2 system.string[]
3 system.string[]
What do I do wrong:
VB.NET:
Dim Larray As New ArrayList(ListBox1.Items)
Dim i() As String
i = DirectCast(Larray.ToArray(GetType(String)), String())
Dim s As Integer
For s = 0 To ListBox1.Items.Count - 1
printsonglist.SourceText &= s + 1 & i.ToString & vbNewLine
Next
Thanks