Guest User

Untitled

a guest
Jan 20th, 2019
88
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 Form1_Deactivate(object sender, EventArgs e)
  2. {
  3. t = new System.Threading.Timer(new System.Threading.TimerCallback(t_Tick), null, 0, 100);
  4. }
  5.  
  6. private void Form1_Activated(object sender, EventArgs e)
  7. {
  8. t.Dispose();
  9. }
  10.  
  11. void t_Tick(object sender)
  12. {
  13. pictureBox1.Invoke((Action)delegate()
  14. {
  15. pictureBox1.Update();
  16. });
  17. }
Add Comment
Please, Sign In to add comment