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

VS 2012 Using a combobox text in instructions

$
0
0
Hello guys,

I am making a program and I want to use the text in a combobox in a certain piece of code.

See this instruction:
Code:

txtElementNumber.Text = (cboElements.text).ElementNumber
ElementNumber is a property of class Element. The cboElements.text is always the name of a certain element in the periodic table.
I want the text of the combobox to combine with the ElementNumber to return the ElementNumer and place it in txtElementNumber.
I don't know how to do this. Can anyone help? (I hope you understand what I mean, if you don't ask me please!)
Thanks in advance!

Viewing all articles
Browse latest Browse all 27379

Trending Articles



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