E EricJ Nov 25, 2003 #2 there are different ways: in design go to the combo en select the items property in code combo.items.add("ze item") (if you have your own class that has a tostring) combo.items.add(instanceofyourclass) or you can make the combo bound to a datasource hope it helps eric
there are different ways: in design go to the combo en select the items property in code combo.items.add("ze item") (if you have your own class that has a tostring) combo.items.add(instanceofyourclass) or you can make the combo bound to a datasource hope it helps eric
H Herfried K. Wagner [MVP] Nov 25, 2003 #3 * portroe said: in VB. net how do you populate a combobox with items? Click to expand... \\\ Me.ComboBox1.Items.Add("Foo") Me.ComboBox1.Items.AddRange(New String() {"Item1", "Item2", ...}) /// - or - \\\ With Me.ListBox1 .DataSource = Database.FindPeople(...) .DisplayMember = "Name" .ValueMember = "Age" End With ///
* portroe said: in VB. net how do you populate a combobox with items? Click to expand... \\\ Me.ComboBox1.Items.Add("Foo") Me.ComboBox1.Items.AddRange(New String() {"Item1", "Item2", ...}) /// - or - \\\ With Me.ListBox1 .DataSource = Database.FindPeople(...) .DisplayMember = "Name" .ValueMember = "Age" End With ///