线程间操作winform

public void GlobaltoShow()
{
label9.BeginInvoke(new System.EventHandler(setTotalLabel), Convert.ToString(Global.ChuCurrMax));
label10.BeginInvoke(new System.EventHandler(setTotalLabe2), Convert.ToString(Global.ChuCurrSend));
}
public void setTotalLabel(object name, EventArgs e)
{
label9.Text = name.ToString();
}

posted @ 2022-02-10 16:37  黄立明02  阅读(29)  评论(0编辑  收藏  举报