
回车
brian0031
这个作者很懒,什么都没留下…
展开
-
dataGridView 回车后移到右边单元格
private void dataGridView1_KeyDown(object sender, KeyEventArgs e) //按下回车执行tab{ if (this.dataGridView1.Focused && e.KeyCode == Keys.Enter)原创 2011-07-15 11:55:20 · 1048 阅读 · 0 评论 -
comboBox执行回车键变Tab键
comboBox执行回车键变Tab键private void comboBox2_KeyDown(object sender, KeyEventArgs e){ if (e.KeyCode == Keys.Enter) textBox1.Focus();}//是KeyDown而不是KeyUp,否则会多跳一个控件private void textBox原创 2013-01-23 16:16:59 · 771 阅读 · 0 评论