static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SelectPort startForm = new SelectPort(); startForm.Show(); Application.Run(); }