日期:2014-05-17 浏览次数:20714 次
private void comboBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter
------解决方案--------------------
e.KeyCode == Keys.Return)
{
if (!comboBox1.DroppedDown)
{
comboBox1.DroppedDown = true;
e.Handled = true;
}
}
}