Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27353

Easy Question!

$
0
0
Set the value of a integer type variable = to the corresponding element in a combobox list with preset items. I can assume that Apples holds an index of 0? So is there a way I can locate the corresponding index value of the preset combobox and assign it to an integer accordingly?



i.e.

Code:

combobox1.items.add("Apples")
combobox1.items.add("Pears")
combobox1.items.add("Oranges")
dim x as integer = combobox1.items(???)

not quite sure on how to approach this

Viewing all articles
Browse latest Browse all 27353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>