Get the combobox text in C#

后端 未结 6 1583
甜味超标
甜味超标 2020-12-18 04:08

I filled up a combobox with the values from an Enum.

Now a combobox is text right? So I\'m using a getter and a setter. I\'m having problems reading the text.

6条回答
  •  眼角桃花
    2020-12-18 04:29

    Have you tried using this.typeComboBox.SelectedText instead of typeComboBox.Text ?

提交回复
热议问题