Wpf关闭程序杀死所有线程:
Process.GetCurrentProcess().Kill();

using System.Diagnostics;

private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
    Process.GetCurrentProcess().Kill();
}

相关文章:

  • 2022-12-23
  • 2021-08-18
  • 2021-12-12
  • 2021-07-06
  • 2022-01-19
  • 2021-07-09
  • 2021-11-19
  • 2021-09-12
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
  • 2021-08-31
相关资源
相似解决方案