We Recommend

Accelerated C# 2008 Accelerated C# 2008
This book is both a rapid tutorial and a permanent reference. You’ll quickly master C# syntax while learning how the CLR simplifies many programming tasks. You’ll also learn best practices that ensure your code will be efficient, reusable, and robust. Why spend months or years discovering the best ways to design and code C# when this book will show you how to do things the right way, right from the start?


Posted By

rengber on 02/07/07


Tagged

forms windows Threading


Versions (?)


Basic Multithreaded Code


Published in: C# 


  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 

You need to login to post a comment.