C#线程实现等待窗体可以动态

话不多说直接上源码!

  Thread thread = new Thread(new ThreadStart(() =>
                        {
                            Invoke(new Action(() =>
                            {

                                Sty.Show();

                            }));



                            Thread.Sleep(100);



                       
                            Invoke(new Action(() =>
                            {

                                Sty.Close();

                            }));

                        }));

        DataShowPanel.Show();
                        thread.IsBackground = true;
                        thread.Start();
                     

posted @ 2018-10-10 14:20  Mr_LiangJianan  阅读(445)  评论(0编辑  收藏  举报