给窗体添加Shown事件

public void Form_Shown(object sender, EventArgs e)

{

this.Activate();

this.Focus();

//定义窗体中某控件获取焦点

this.textbox.Focus();
}

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-08-08
  • 2022-03-05
相关资源
相似解决方案