c# 给dornetbar中combobox赋值 ゝ一世哀愁。 2022-07-12 04:55 141阅读 0赞 1.给Combobox赋值,这样不会显示空值 this.comboBox1.SelectedIndex = this.comboBox1.FindString(room); this.comboBox1.SelectedIndex = this.comboBox1.FindString(room); 这样能获得comboBox1.SelectedValue值。 this.comboBox1.SelectedText = room; 这样获得comboBox1.SelectedValue值为空。
还没有评论,来说两句吧...