ListBox to ComboBox

Hello, i need to make that the same items of a ListBox add it in a ComboBox, I try with that, but only add the first item, and i need to add them all, any help? Thanks in advance. ComboBox1.AddRow(Listbox2.Cell(-1,-1))

Hmm…Maybe read the Listbox into a variable or array, then use a For…Next loop to read each element of the array into the ComboBox? Would that work for you? Does the Listbox have just one column of data?

Yes, the listbox has data. But i would like to add all the items of a ListBox to a ComboBox. How can i do it?

you can only add Data from one column

dim column as integer = // your column number
for i as integer = 0 to Listbox2.ListCount-1
ComboBox1.AddRow (Listbox2.Cell(i,column))
next

[quote=182172:@Axel Schneider]you can only add Data from one column

dim column as integer = // your column number for i as integer = 0 to Listbox2.ListCount-1 ComboBox1.AddRow (Listbox2.Cell(i,column)) next [/quote]Oh thanks but only add the items and not their text, add like Rows in blank. I am trying to fix it but i can’t

have you insert your column number?
for example (column 0)

dim column as integer = 0

[quote=182180:@Axel Schneider]have you insert your column number?
for example (column 0)

dim column as integer = 0[/quote]
Yes, add all the items but not with their text

Oh sorry that ok, i fix it, i put column 1 and i change it to column 0