Ejemplo n.º 1
0
        private void splashScreenTimer_Tick(object sender, EventArgs e)
        {
            splashScreenTimer.Stop();

            StartForm startForm = new StartForm();

            Hide();

            startForm.Show();
        }
        /// <summary>
        /// Show the next form and hide this form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SplashFormTimer_Tick(object sender, EventArgs e)
        {
            //hide the splash form
            this.Hide();

            //create an object for the next form
            StartForm startForm = new StartForm();

            //point this form to the parent form
            startForm.previousForm = this;

            //show the next form
            startForm.Show();

            //disable the timer event
            SplashFormTimer.Enabled = false;
        }