Esempio n. 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            StartForm startForm = new StartForm();
            DateTime  end       = DateTime.Now + TimeSpan.FromSeconds(5);

            startForm.Show();
            while (end > DateTime.Now)
            {
                Application.DoEvents();
            }
            startForm.Close();
            startForm.Dispose();
            Application.Run(new ContainerForm());
        }