Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. private void checkBox1_CheckedChanged(object sender, EventArgs e)
  2. {
  3. if (checkBox1.Checked)
  4. {
  5. TickCounter.Text = "The timer has started";
  6. tPeriodic.Enabled = true;
  7. }
  8. else
  9. {
  10. TickCounter.Text = "The timer has ended";
  11. tPeriodic.Enabled = false;
  12. }
  13.  
  14. }
  15.  
  16. private void TickCounter_ValueChanged(object sender, EventArgs e)
  17. {
  18. TickCounter.Text = TickCounter.Value.ToString();
  19. }
  20.  
  21. private void tPeriodic_Tick(object sender, EventArgs e)
  22. {
  23. TickCounter.Value += 1;
  24. }
  25.  
  26. private void label1_Click(object sender, EventArgs e)
  27. {
  28. TickCounter.Text = TickCounter.Value.ToString();
  29. }
  30.  
  31. private void Form1_Load(object sender, EventArgs e)
  32. {
  33.  
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement