在编写WinForm程序时,我们有很多时候需要用到进度条,下面我来分享一下我在处理进度条时所采用的各种方法。

创建一个Winform窗体应用项目。添加一个新的窗体(progressForm.cs)用来承载进度条;

在progressForm窗体添加一个进度条控件。

 

 

 

1,单线程进度条

向progressForm.cs添加一个方法Addprogess用来推动进度条。

C#学习笔记之进度条
 public void Addprogess()
        {
            progressBar1.Value++;
        }
View Code

相关文章:

  • 2021-04-22
  • 2022-03-06
  • 2021-08-24
  • 2021-12-15
  • 2022-03-03
  • 2021-09-10
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2021-05-31
  • 2021-11-22
  • 2021-07-19
  • 2021-10-03
  • 2021-09-10
相关资源
相似解决方案