static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //main object created main = new MainInterface(); Application.Run(main); }