WinForm 后台线程更新UI


string strMsg= "完成:" + fileInfoFrom.FullName + "同步";
                        this.lblMsg.Invoke(
                            new Action(() => {
                                this.lblMsg.Text = strMsg;
                                }));

 

 

 

  

posted @ 2022-08-23 07:00  chengeng  阅读(153)  评论(0编辑  收藏  举报