CsharpeDeveloper

mainfrom -- > form1

 

在form1中退出程序

{

mainform.exit();

}

 

mainform

fun exit()

{

this.Close();
System.Environment.Exit(0);

}

 

最后会有crash ,unhandled the exception

 

解决

在form1中退出程序

{

this.close();

mainform.exit();

}

 

其实form1 mainform 都是UI线程(主线程)

分类:

技术点:

相关文章:

  • 2021-09-14
  • 2021-11-02
  • 2022-12-23
  • 2021-07-17
  • 2021-09-14
  • 2021-11-01
  • 2022-12-23
猜你喜欢
  • 2021-11-01
  • 2021-09-14
  • 2021-09-14
  • 2021-09-14
  • 2021-09-14
  • 2021-09-14
  • 2021-09-14
相关资源
相似解决方案