tiasys

关闭窗口:this.Close();

退出应用程序: Application.Exit();

DialogResult result;
result = MessageBox.Show("你确定要退出么?", "退出", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);

if (result == DialogResult.Yes)
{
Application.Exit();
}

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-18
  • 2021-12-18
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
相关资源
相似解决方案