dev 添加等待窗口

void testShowWait()
{
    // 创建窗口
    //WaitDialogForm wait = new WaitDialogForm("提示", "正在计算......");
    WaitDialogForm wait = new WaitDialogForm("提示", "正在计算......", new Size(260, 50), this);

    // 人工添加繁忙处理
    List<string> s = new List<string>();
    for (int i = 0; i < 100; i++)
    {
        for (int i1 = 0; i1 < 100; i1++)
        {
            for (int i2 = 0; i2 < 100; i2++)
            {
                for (int i3 = 0; i3 < 100; i3++)
                {
                    s.Add(i.ToString());
                    s.Clear();
                }
            }
        }

        // 刷新进度
        wait.SetCaption("执行进度(" + i.ToString() + "/100)");
    }

    // 关闭窗口
    wait.Close();
}
原文地址:https://www.cnblogs.com/jobgeo/p/5163833.html