• 大小: 0.20M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-23
  • 语言: C#
  • 标签: ProgressBar  进度条  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Test24
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender EventArgs e)
        {
            button1.Enabled = false;
            progressBar1.Minimum = 0;
            progressBar1.Maximum = 5000;
            progressBar1.Step = 1;
            for (int i = 0; i <5000; i++)
            {
                progressBar1.PerformStep();
                textBox1.Text = “进度值:“ + progressBar1.Value.ToString();
            }
        }

        private void Form1_Load(object sender EventArgs e)
        {

        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-02-26 21:13  Progressbar进度条\
     目录           0  2020-02-26 21:13  Progressbar进度条\.vs\
     目录           0  2020-02-26 21:13  Progressbar进度条\.vs\Test24\
     目录           0  2020-02-26 21:13  Progressbar进度条\.vs\Test24\v15\
     文件       59392  2020-02-26 21:16  Progressbar进度条\.vs\Test24\v15\.suo
     目录           0  2020-02-26 21:13  Progressbar进度条\.vs\Test24\v15\Server\
     目录           0  2020-02-26 21:13  Progressbar进度条\.vs\Test24\v15\Server\sqlite3\
     文件           0  2020-02-26 21:12  Progressbar进度条\.vs\Test24\v15\Server\sqlite3\db.lock
     文件        4096  2020-02-26 21:12  Progressbar进度条\.vs\Test24\v15\Server\sqlite3\storage.ide
     文件       32768  2020-02-26 21:15  Progressbar进度条\.vs\Test24\v15\Server\sqlite3\storage.ide-shm
     文件      675712  2020-02-26 21:16  Progressbar进度条\.vs\Test24\v15\Server\sqlite3\storage.ide-wal
     目录           0  2020-02-26 21:13  Progressbar进度条\Test24\
     文件        3074  2020-02-26 21:12  Progressbar进度条\Test24\Form1.Designer.cs
     文件         794  2020-02-26 21:12  Progressbar进度条\Test24\Form1.cs
     文件        5814  2020-02-26 21:12  Progressbar进度条\Test24\Form1.resx
     文件         487  2009-11-30 11:49  Progressbar进度条\Test24\Program.cs
     目录           0  2020-02-26 21:13  Progressbar进度条\Test24\Properties\
     文件        1344  2009-11-30 11:49  Progressbar进度条\Test24\Properties\AssemblyInfo.cs
     文件        2848  2012-04-19 14:48  Progressbar进度条\Test24\Properties\Resources.Designer.cs
     文件        5612  2009-11-30 11:49  Progressbar进度条\Test24\Properties\Resources.resx
     文件        1102  2012-04-19 14:48  Progressbar进度条\Test24\Properties\Settings.Designer.cs
     文件         249  2009-11-30 11:49  Progressbar进度条\Test24\Properties\Settings.settings
     文件        4049  2012-04-19 14:48  Progressbar进度条\Test24\Test24.csproj
     目录           0  2020-02-26 21:13  Progressbar进度条\Test24\bin\
     目录           0  2020-02-26 21:13  Progressbar进度条\Test24\bin\Debug\
     文件        8704  2020-02-26 21:13  Progressbar进度条\Test24\bin\Debug\Test24.exe
     文件       22016  2020-02-26 21:13  Progressbar进度条\Test24\bin\Debug\Test24.pdb
     文件       21464  2014-08-04 16:58  Progressbar进度条\Test24\bin\Debug\Test24.vshost.exe
     文件         490  2013-06-18 20:28  Progressbar进度条\Test24\bin\Debug\Test24.vshost.exe.manifest
     目录           0  2020-02-26 21:16  Progressbar进度条\Test24\bin\Release\
     目录           0  2020-02-26 21:13  Progressbar进度条\Test24\obj\
............此处省略18个文件信息

评论

共有 条评论