Listen-Objekt als Datenquelle für Combobox / ListBox
Verfasst: 13.02.2013, 21:48
Hier ein Beispiel, wie man eine Liste als Datenquelle für eine Combobox / ListBox setzt:
Code: Alles auswählen
Private lstForCBox As New List(Of String)
lstForCBox.Add("Wert1")
lstForCBox.Add("Wert2")
objCBox.DataSource = lstForCBox