Exemplo n.º 1
0
 private void timer1_Tick(object sender, EventArgs e)
 {
     if (timeLeft > 0)
     {
         timeLeft = timeLeft - 1;
     }
     else
     {
         timer1.Stop();
         FormLogin loginf = new FormLogin();
         loginf.Show();
         //se le otorga como propietario del formulario a Login
         this.Owner = loginf;
         this.Hide();
     }
 }
Exemplo n.º 2
0
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (timeLeft > 0)
            {
                timeLeft = timeLeft - 1;

            }
            else
            {
                timer1.Stop();
                FormLogin loginf = new FormLogin();
                loginf.Show();
                //se le otorga como propietario del formulario a Login
                this.Owner = loginf;
                this.Hide();
            }
        }