Exemplo n.º 1
0
        private void SplashFormTimer_Tick(object sender, EventArgs e)
        {
            //1. instantiate the next form
            CalculatorForm calculatorForm = new CalculatorForm();

            calculatorForm.previousForm = this;
            //2. pass a referance to the current form to the next form
            this.SplashFormTimer.Enabled = false;
            calculatorForm.Show();
            this.Hide();
        }
Exemplo n.º 2
0
        public static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //initalize the splash form
            Program.MySplashForm     = new SplashForm();
            Program.MyCalculatorForm = new CalculatorForm();

            Application.Run(Program.MySplashForm);
        }