其实我觉得可以使用Enabled属性来解决这个问题,不过还是给了一个你说的那种方法的代码。在Enter事件中处理。 private void comboBox1_Enter(object sender, System.EventArgs e)
{
if (this.comboBox1.SelectedIndex != -1)
{
this.SelectNextControl(this,true,true,true,true);
}
}
{
if (this.comboBox1.SelectedIndex != -1)
{
this.SelectNextControl(this,true,true,true,true);
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货