static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //Application.Run(new FrmCaptureDetail()); using (ProcessIcon pi = new ProcessIcon()) { pi.Display(); // Make sure the application runs! Application.Run(); } }