111,098
社区成员




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();
}