private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
switch (e.KeyCode)
{
case Keys.Left:
case Keys.Right:
case Keys.Up:
case Keys.Down:
e.Handled = true;
break;
}
}
让Up,Down,Left,Right失去作用 禁用Up,Down,Left,Right
最新推荐文章于 2021-01-17 19:26:20 发布