예제 #1
0
        //splash timer for how long it should be open
        private void _SplashTimer_Tick(object sender, EventArgs e)
        {
            StartForm startForm = new StartForm();

            this.SplashTimer.Enabled = false;
            startForm.Show();
            Hide();
        }
예제 #2
0
        /// <summary>
        /// this method setting time and hide splashscreen and show start form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SplashTimer_Tick(object sender, EventArgs e)
        {
            this.SplashTimer.Enabled = false;
            this.Hide();
            StartForm start = new StartForm();

            start.Show();
        }
        private void SplashForm_timer_Tick(object sender, EventArgs e)
        {
            SplashForm_timer.Enabled = false;
            StartForm startForm = new StartForm();

            startForm.Show();
            this.Hide();
        }
 private void SplashTimer_Tick(object sender, EventArgs e)
 {
     // Enabled timer
     SplashTimer.Enabled = false;
     // Hide the splash form
     this.Hide();
     // Show selection form
     myStartForm.Show();
 }
예제 #5
0
        /// <summary>
        /// SplashFormTimer_Tick Event Handler
        /// This displays the splash form for 3 seconds, then moves on to the start form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void SplashFormTimer_Tick(object sender, EventArgs e)
        {
            //this is so that the timer only goes once, otherwise it will open a billion forms
            SplashFormTimer.Enabled = false;
            //this is where the start form opens
            StartForm startform = new StartForm();

            startform.Show();
            //this hides the splash screen
            this.Hide();
        }
예제 #6
0
        private void SplashTimer_Tick(object sender, EventArgs e)
        {
            Timer tim = sender as Timer;

            tim.Stop();
            StartForm startForm = new StartForm();

            isClosed = true;
            startForm.previousForm = this;
            startForm.Show();
            this.Hide();
        }
예제 #7
0
        private void SplashFormTimer_Tick(object sender, EventArgs e)
        {
            //opening start form when splash form timer is completed i.e after 3 seconds
            StartForm startForm = new StartForm();

            startForm.previousForm = this;


            this.SplashFormTimer.Enabled = false;
            startForm.Show();
            this.Hide();
        }
예제 #8
0
        private void SplashScreenTimer_Tick(object sender, EventArgs e)
        {
            // 1. Instantiate the next form
            StartForm startForm = new StartForm();

            // 2. pass a reference to the current form to the next form
            startForm.previousForm = this;

            this.SplashScreenTimer.Enabled = false;

            startForm.Show();

            this.Hide();
        }
예제 #9
0
        private void _SplashFormTimer_Tick(object sender, EventArgs e)
        {
            // create a new instance of StartForm
            StartForm startForm = new StartForm();

            // disable the timer
            SplashFormTimer.Enabled = false;

            // Hide the splash form
            this.Hide();

            // Show the start form
            startForm.Show();
        }