<span style="font-size:18px;"> void Fun()
{
Invoke((EventHandler)delegate
{
textBox1.Text = "从线程中更新UI";
});
}
private void button1_Click(object sender, EventArgs e)
{
System.Threading.Thread thread = new System.Threading.Thread(Fun);
thread.Start();
}</span>
c# 线程中更新UI
最新推荐文章于 2024-02-06 13:42:35 发布