且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

设置combobox.selecteditem时出错

更新时间:2023-10-14 13:31:22


组合框selecteditem没有名为text的属性.

,但是您可以这样做

levelName = comboBox1.SelectedItem.ToString();

我希望它会为您提供帮助.让我知道
Hi,
combobox selecteditem don't have the property called text.

but you can do like this

levelName=comboBox1.SelectedItem.ToString();

i hope it will help you.if you want to more let me know