弹窗居中显示,
using (DlgProgressBar progressBar = new DlgProgressBar(0, 10)) { progressBar.StartPosition = FormStartPosition.CenterScreen;
progressBar.Show(dlg.Owner);Application.DoEvents();
}