答案 0 :(得分:0)
尝试TextBox KeyDown事件
private void TextBox1_KeyDown(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.Down:
//your code
break;
case Keys.Left:
//your code
break;
case Keys.Right:
//your code
break;
case Keys.Up:
//your code
break;
default:
//your code
break;
}
}