两种方法:

1 在Load中设置
this.ActiveControl = this.textBox;

2 this.textBox.Focus();
但在Form_Load设置会无效, 可在Form_Paint()中设置.

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2021-12-19
  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
猜你喜欢
  • 2022-01-02
  • 2021-06-21
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2022-12-23
相关资源
相似解决方案