| Forum: VB.NET |
Thema:
Re: Listbox 1 Einträge in ein array auslesen und in Listbox2 ausgeben |
Von:
Till Groos (
22.03.2004 16:14) |
Hallo,
Dim j As Integer = 0
Dim listbox_arr(ListBox1.SelectedItems.Count - 1) As String
ListBox2.BeginUpdate()
ListBox2.Items.Clear()
For i As Int32 = 0 To ListBox1.SelectedItems.Count - 1
ListBox2.Items.Add(ListBox1.SelectedItems.Item(i))
If Array.IndexOf(listbox_arr, ListBox1.SelectedItems.Item(i)) <> -1 Then
listbox_arr(j) = ListBox1.SelectedItems.Item(i).ToString()
j += 1
End If
Next
ListBox2.EndUpdate()
hth
mfgTill
Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!