Exemplo n.º 1
0
 private void LoadingTimer_Tick(object sender, EventArgs e)
 {
     a += 30;
     LoadingBar.Value = a;
     if (LoadingBar.Value == 40)
     {
         LoadingImage3.Hide();
         Procents.Text = "40%";
     }
     else if (LoadingBar.Value == 70)
     {
         LoadingImage2.Hide();
         Procents.Text = "70%";
     }
     if (LoadingBar.Value == 100)
     {
         Procents.Text = "100%";
         LoadingImage3.Show();
         LoadingTimer.Stop();
     }
 }
Exemplo n.º 2
0
 private void LoadingTimer_Tick(object sender, EventArgs e)
 {
     panel3.Width += 3;
     if (panel3.Width == 63)
     {
         label1.Text = "you are dumb a*s?";
         label2.Show();
     }
     if (panel3.Width == 69)
     {
         label1.Text = "The width of loading bar is 69 now?";
         label2.Show();
     }
     if (panel3.Width >= panel1.Width)
     {
         LoadingTimer.Stop();
         this.Hide();
         Register0Form register = new Register0Form();
         register.Show();
     }
 }