发现c#多线程清理起来真麻烦,后来直接在关闭的时候这样就行。 System.Environment.Exit(System.Environment.ExitCode); this.dispose(); this.close();