static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); FormWelcome welcome = new FormWelcome(); welcome.ShowDialog(); if (welcome.GetSelected() != null) { Application.Run(welcome.GetSelected()); } }
public SplashForm() { InitializeComponent(); this.BackColor = Color.FromArgb(5, 50, 86); pictureBox1.BackColor = Color.FromArgb(5, 50, 86); Timer t = new Timer(); t.Interval = 1000; t.Tick += (e, f) => { t.Stop(); this.Hide(); FormWelcome fw = new FormWelcome(); fw.ShowDialog(); }; t.Start(); }