invoke问题
关于 invoke ,我不太会用,下面的代码应该怎么修改??
this.txtOCardNO1.Invoke(new MethodInvoker( delegate { txtOCardNO1.Text = pcid; } )); this.txtOutTime.Invoke(new MethodInvoker( delegate { txtOutTime.Text = DateTime.Now.ToString(); } ));
if (textBox1.InvokeRequired) { textBox1.Invoke(...); }