static void Main() { if (AllGood) { MessageBox.Show("Bye); } else { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); } }
static void Main() { // ... if (!condition) return; Application.Run(new Form1()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)