C# 程序运行进度显示Lable
2021-04-25 03:29
标签:str c# tostring 进度 pre ext i++ color 0.00 C# 程序运行进度显示Lable 标签:str c# tostring 进度 pre ext i++ color 0.00 原文地址:http://www.cnblogs.com/lanyubaicl/p/7927656.html 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;
}