Getting value of specific item in combobox in Visual Basic 2013

Posted by JaceG on Stack Overflow See other posts from Stack Overflow or by JaceG
Published on 2014-06-12T03:21:42Z Indexed on 2014/06/12 3:24 UTC
Read the original article Hit count: 178

I'm having great difficulty trying to find how to simply get the text of one specific item in a ComboBox.

I have cmbSelectedHinge as a dropdownlist style. All I need is to know what the text is in position 0. I would have thought simply:

MsgBox(cmbSelectHinge.Items.IndexOf(0))

but no. It returns "-1" even though there is a line of text in it. It seems this question has never before been asked on the internet, and there's no useful information on MSDN.

Any help, please

© Stack Overflow or respective owner

Related posts about combobox

Related posts about visual-studio-2013