-2

大家好,我想创建一个应用程序,它有进度条,正在加载,其他窗口在 c# 中被禁用

4

1 回答 1

1

您可以使用 bunify 制作进度条,就像您已经使用它一样,并且在进度条显示在 shild 窗口中期间,您停用了其他窗口。

您可以在 winform 中进行类似的操作以阻止父窗口:

ChildForm child = new ChildForm();
child.Owner = this;
child.Show();

In ChildForm_Load:
private void ChildForm_Load(object sender, EventArgs e) {
  this.Owner.Enabled = false;
}

private void ChildForm_Closed(object sender, EventArgs e) {
  this.Owner.Enabled = true;
}

对于进度条,您可以查看:https ://bunifuframework.com/products/bunifu-ui-winforms/controls/bunifu-progress-bar/

于 2019-02-24T13:53:18.457 回答