110,534
社区成员
发帖
与我相关
我的任务
分享
public void SetValueFun(string str, string controlid, object form1)
{
Form1 f1 = form1 as Form1;
if (this.InvokeRequired)
{
f1.Invoke(new SetValue(SetValueFun), str, controlid, form1);
}
else
{
f1.Controls[controlid].Text = str;
}
}
if (!synchronous)
{
return entry;
}
if (!entry.IsCompleted)
{
this.WaitForWaitHandle(entry.AsyncWaitHandle);
}
if (entry.exception != null)
{
throw entry.exception;
}
return entry.retVal;