Esempio n. 1
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            this.Hide();
            DietMasterPage dm = new DietMasterPage();

            dm.Show();
        }
Esempio n. 2
0
        void tmr_Tick(object sender, EventArgs e)
        {
            //after 3 sec stop the timer
            tmr.Stop();
            //display mainform
            DietMasterPage dm = new DietMasterPage();

            dm.Show();
            dm.Height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height - 100;
            dm.Width  = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width - 100;
            //hide this form
            this.Hide();
        }