Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public MainWindow()
  2. {
  3. InitializeComponent();
  4. new Thread(() => T()).Start();
  5. }
  6. public void T()
  7. {
  8. while (true)
  9. {
  10. t.Text = (Convert.ToInt32(t.Text) + 1).ToString();
  11. Thread.Sleep(1000);
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement