public partial class rsa ... { private void button10_Click(object sender, EventArgs e) ...{ TextBox r1 = new TextBox(); System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(ss)); t.Start(); } void ss() ...{ //InvokeRequired用于指示主调方法在本线程以外时,必须启用对象的Invoke方法添加委托调用 if (r1.InvokeRequired) ...{ r1.Invoke(new EventHandler(tt), null); } } void tt() ...{ this.r1.Text = "text"; }}