Exiting c# app from splash screen
问题 I am using a splash screen for a c# which runs on startup and checks the app license. I show the splash from the main form like this: public partial class Form1 : Form { static bool stopThreads = false; static bool gridChanged = false; public Form1() { InitializeComponent(); Thread th = new Thread(new ThreadStart(DoSplash)); th.Start(); th.Join(); } private void DoSplash() { Splash sp = new Splash(); sp.ShowDialog(); } Now from the splash form I am trying exit the application when the license