private void btnok_Click(object sender, EventArgs e) { this.Close(); LoginFrm login = new LoginFrm(); login.Show(); this.Close(); }
private void timer1_Tick(object sender, EventArgs e) { count++; lblcount.Text = count < 10 ? "0" + count.ToString() : count.ToString(); if (count == 100) { var login = new LoginFrm(); timer1.Stop(); this.Hide(); login.Show(); } }