c#toolstripstatus状态栏跨线程操作-使用委托方法

c#toolstripstatus状态栏跨线程操作-使用委托方法

 this.Invoke(new EventHandler(delegate
                    {

                        toolStripStatusLabel_scale.Text = System.DateTime.Now.ToString() + " 称重未启动";
                        toolStripStatusLabel_scale.BackColor = Color.Red;
                    }));

 

posted @ 2022-04-01 23:16  txwtech  阅读(390)  评论(0编辑  收藏  举报