Listen-Objekt als Datenquelle für Combobox / ListBox

Microsoft Visual Basic .NET Express
Antworten
localhorst
Beiträge: 571
Registriert: 17.12.2012, 20:19

Listen-Objekt als Datenquelle für Combobox / ListBox

Beitrag von localhorst »

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
Antworten