62,266
社区成员
发帖
与我相关
我的任务
分享
string txt = comboBox1.Text;
for (int i = 0; i < comboBox1.Items.Count; i++)
{
if (txt == comboBox1.Items[i].ToString())
{
comboBox1.SelectedIndex = i;
}
}