c#中跨线程访问

 

 

         1     Thread thread = new Thread(threadRun);
            thread.IsBackground = true;
            thread.Start();

 

    2    private void threadRun()
        {
            MethodInvoker In = new MethodInvoker(run);
            this.BeginInvoke(In);
        }

      3    private void run()
        {
            this.tslInfo.Text = "Npoi大爷的";
        }

posted @   陌念  阅读(174)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示