Get the combobox text in C#

后端 未结 6 1589
甜味超标
甜味超标 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:39

    The combobox starts at index -1, which has no text, thus an empty string: ""

    I then change the index to a BookType that I need and then I get the wrong output...

提交回复
热议问题