문제

I'm trying to set the initial a combobox displays, it should be from code. The elements in my combobox are strings.

도움이 되었습니까?

해결책

The question is how did you fill the combo box to begin with?

I'm assuming the combo box isn't filled with integers. If you want to select by an offset you need to invoke setSelectedIndex not setSelectedItem.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top