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:
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!
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
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!