Basic Multithreaded Code


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. private void button3_Click(object sender, System.EventArgs e)
  2. {
  3. ThreadStart ts = new ThreadStart(HelloFromThread);
  4. Thread t = new Thread(ts);
  5. t.Start();
  6. }
  7.  
  8. private void HelloFromThread()
  9. {
  10. button3.Text = "Hello From Thread";
  11. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.