Exemple #1
0
        private void buttonForLog_Click(object sender, EventArgs e)
        {
            this.Visible  = false;
            ShowInTaskbar = false;

            userPassForm pass = new userPassForm();

            pass.Show();
        }
Exemple #2
0
 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);
     }
 }