private void ShowProgressDialog()
{
GxDlgHelper.ProgressDialog2 pDg = new GxDlgHelper.ProgressDialog2(this);
try
{
pDg.Title = "批量导出";
pDg.Message = "导出";
pDg.Min = 0;
pDg.Max = 100;
pDg.CancelEnabled = false;
修改光标样式
this.Cursor = System.Windows.Forms.Cursors.WaitCursor;
pDg.Position = 0;
pDg.Show();
for (int i = 0; i < 100; i++)
{
pDg.Message = "导出【第" + i + "个】";
pDg.Description = "正在导出……";
pDg.Step(1);
}
}
catch (Exception ex)
{
}
finally
{
this.Cursor = System.Windows.Forms.Cursors.Default;
pDg.Hide();
pDg = null;
}
}
进度条窗体
最新推荐文章于 2022-10-10 15:34:49 发布