foreach (Control control in this.Controls)//遍历本窗体中所有的ComboBox控件
{
if (control.GetType().ToString() == "System.Windows.Forms.ComboBox")
{
(control as ComboBox).SelectedIndex = 1;
}
}
兄弟 问题最后怎么解决的 我也遇到这个问题了