using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace SplashScreen { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { //the timer is now going to start timeLeft = 10; timer1.Start(); } public int timeLeft { get; set; } private void timer1_Tick(object sender, EventArgs e) { if (timeLeft > 0) { timeLeft = timeLeft - 1; } else { timer1.Stop(); new Form3().Show(); this.Hide(); } } } }