Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. Timer t = new Timer();
  2. private void LetTheGameStart_Load(object sender, EventArgs e)
  3. {
  4. timer1.Enabled = true;
  5. timer1.Start();
  6. timer1.Interval = 1000;
  7. progressBar1.Maximum = 10;
  8. timer1.Tick += new EventHandler(timer1_Tick);
  9. }
  10.  
  11. void timer1_Tick(object sender, EventArgs e)
  12. {
  13. {
  14. if (progressBar1.Value != 100)
  15. {
  16. progressBar1.Value++;
  17. label2.Text = "Downloading Virus";
  18. }
  19. }
  20. if (progressBar1.Value != 50)
  21. {
  22. label2.Text = "installing Virus";
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement