Right now, to be sure I am getting what I want I am using
actionComboBox.Items[actionComboBox.SelectedIndex].ToString()
to retrieve the string that is stored as an item in my TextBox
Does one of the Selected properties return my above statement? I can never seem to get what I want when I use those.
Like, does actionComboBox.SelectedItem as string return the above value?
EDIT:
I guess the true question here is: What do each Selected Property return such as; SelectedItem, SelectedValue, SelectedText.
I think
SelectedTextreturns the text that is selected if you are able to edit the text in the combo box. I don’t think you use this property if you have theDropDownListstyle selected where the user cannot just type values into the combobox.SelectedValueonly applies if you are bind to a datasource.SelectedValuewill return the item in the datasource you’ve selected, or if you have theDisplayMemberfield filled in, the value of the property/column that you have specified.SelectedItemwill return the selected item if you have just filled in the list items through the designer.I get burned on these all the time, cause I always forget. The big question in your example is how are the items being populated into the combo box, that will affect the return values of these properties.