后台线程调用前台页面上的内容:windows Form

BackgroundThreadFunction()

{

   Invoke(new ShowMessage(Show), strAccount, e.Message);

}

private delegate void ShowMessage(string strAccount, string Exception);

private void Show(string strAccount, string Exception)
        {
            lblInfo.Text = "获取" + strAccount;
            lblException.Text =strAccount +  " " + Exception;
        }

原文地址:https://www.cnblogs.com/binaryworms/p/2609546.html