static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); splash_screen_thread = new System.Threading.Thread(ShowSplashScreen); splash_screen_thread.IsBackground = true; splash_screen_thread.Start(); pid_settings_form = new PID_Settings_Form(); temperature_control_form = new USB_TC_Control_Form(); temperature_control_form.WindowState = FormWindowState.Maximized; temperature_control_form.FormClosed += new FormClosedEventHandler(temp_control_form_OnClosed); Application.Run(temperature_control_form); }