Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. private void timer1_Tick(object sender, EventArgs e)
  2. {
  3. tiempo--;
  4. timer1.Start();
  5. label3.Text = Convert.ToString(tiempo);
  6. if (tiempo == 0)
  7. {
  8. timer1.Stop();
  9. MessageBox.Show("El tiempo se ha agotado.");
  10. }
  11. }
  12.  
  13. tiempo = 10;
  14. timer1.Stop();
  15. timer1.Start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement