110,500
社区成员
发帖
与我相关
我的任务
分享
private async void button1_Click(object sender, EventArgs e)
{
new Task(() =>
{
if (this.textBox1.InvokeRequired)
{
this.textBox1.Invoke(new Action(() =>
{
this.textBox1.Text = "111";
}));
}
}).Start();
await Task.Delay(2000);
this.textBox1.Text = this.textBox1.InvokeRequired.ToString();
}