retreive items from the combo box

Sep 9, 2010 at 8:47 PM

I want to know how to retreive the text from the combo box. I have a combo box which contains listBox items under the TextBox and I want to retreive all items from the combo box.


Sep 10, 2010 at 7:30 AM



comboBox.Items => list of all items


Sep 10, 2010 at 8:01 AM

Thanks for the response. If I understand this correctly to print all list items,  would I  need to assign it to a variable? If so, how do i do it ?


Sep 10, 2010 at 8:09 AM



no, comboBox.Items returns ListItems as Type which is a collection.


comboBox.Items[0] for exapmple is from Type ListItem



Sep 10, 2010 at 8:15 AM

ok, Thanks.