static void Main() { try { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } catch (Exception exp) { MessageBox.Show(exp.Message); //After this the program exits } }
} catch (Exception exp) { MessageBox.Show(exp.Message); Application.Run(new Form1()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)