using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Threading; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { string ss = "我是要傳入的字符串"; //開啓線程(帶參數) ThreadPool.QueueUserWorkItem(new WaitCallback(aa), ss); } void aa(object o) { //線程中調用控件 textBox1.BeginInvoke(new System.EventHandler(bb), o); } void bb(object o, EventArgs e) { textBox1.Text = o.ToString(); } } }