1、文本框右键属性 => 添加KeyDown事件。

2、添加如下代码:

private void txt_result_KeyDown(object sender, KeyEventArgs e)
{
    if (e.Control && e.KeyCode == Keys.A)
    {
        ((TextBox)sender).SelectAll();
    }
}

 

相关文章:

  • 2021-07-11
  • 2022-12-23
  • 2021-08-20
  • 2022-01-21
  • 2021-11-23
  • 2022-12-23
  • 2022-02-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
相关资源
相似解决方案