C# 程序运行进度显示Lable

 

 

 

       public void test()
        {
            Thread.Sleep(1000);
            string vvv = "";
            for (int i = 0; i < 100000;i++ )
            {
                vvv = vvv  +i.ToString() + "\r\n";
                lblTip.Text = "已完成:[" + ((float)i*100 / (float)100000).ToString("0.00") + "%]...的数据";
                Application.DoEvents();
            }
            this.textBox1.Text = vvv;
        }

 

posted @ 2017-11-30 10:03  蓝雨冰城  阅读(1284)  评论(0编辑  收藏  举报