private void buttonForLog_Click(object sender, EventArgs e) { this.Visible = false; ShowInTaskbar = false; userPassForm pass = new userPassForm(); pass.Show(); }
void timer1_Tick(object sender, EventArgs e) { try { timeleft--; if (progressBar1.Value != 43) { progressBar1.Value++; if (timeleft == 0) { timer1.Stop(); this.Visible = false; ShowInTaskbar = false; userPassForm pass = new userPassForm(); pass.Show(); } } } catch (Exception ex) { MessageBox.Show(ex.Message); } }