static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); BonusSkins.Register(); SkinManager.EnableFormSkins(); login log = new login(); log.ShowDialog(); if (log.CanLogin == true) { Application.Run(new index(log.user)); } }