Example #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();
        }
Example #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();
        }
        /// <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();
        }
Example #5
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();
        }
        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();
        }
        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();
        }
Example #8
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     // Instantiate the forms
     spalshForm      = new SpalshForm();
     orderForm       = new OrderForm();
     productInfoForm = new ProductInfoForm();
     selectForm      = new SelectForm();
     startForm       = new StartForm();
     aboutBox        = new AboutBox();
     product         = new Product();
     Application.Run(new SpalshForm());
 }
        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();
        }
Example #10
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            splashForm      = new SplashForm();
            startForm       = new StartForm();
            orderForm       = new OrderForm();
            aboutForm       = new AboutForm();
            productInfoForm = new ProductInfoForm();
            selectForm      = new SelectForm();

            product = new Product();

            Application.Run(splashForm);
        }