private void timer1_Tick(object sender, EventArgs e) { //This will hide Splash form this.Hide(); //This will stop timer of the splash form or it will continue and at every 3000 ms event is trigerred again and again timer1.Stop(); // main form object is created GenerateNameForm main = new GenerateNameForm(); // GenerateNameForm show main.Show(); }
//Timer's tick event handler private void Timer_Tick(object sender, EventArgs e) { //Stop method to stop the Splashscreen Timer.Stop(); //Instantiate a new GenerateNameForm object GenerateNameForm mf = new GenerateNameForm(); //A method to show the SplashForm mf.Show(); //A method to hide the SplashForm this.Hide(); }