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

资源简介

这个实例(https://www.daboke.com)可以让你3分钟掌握C#的ProgressBar控件,走过路过不要错过!

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace progressBar
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Button1_Click(object sender EventArgs e)
        {
            if (textBox1.Text == ““)
            {
                return;
            }
            else
            {
                progressBar1.Value = 0;
                progressBar1.Minimum = 0;
                progressBar1.Maximum = int.Parse(textBox1.Text);
                output(“进度条开始“);
                timer1.Enabled = true;
            }
        }

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-05-31 15:11  progressBar\
     目录           0  2020-05-31 09:52  progressBar\.vs\
     目录           0  2020-05-31 09:52  progressBar\.vs\progressBar\
     目录           0  2020-05-31 09:52  progressBar\.vs\progressBar\v16\
     文件       48128  2020-05-31 15:12  progressBar\.vs\progressBar\v16\.suo
     目录           0  2020-05-31 09:52  progressBar\.vs\progressBar\v16\Server\
     目录           0  2020-05-31 15:12  progressBar\.vs\progressBar\v16\Server\sqlite3\
     文件           0  2020-05-31 09:52  progressBar\.vs\progressBar\v16\Server\sqlite3\db.lock
     文件      561152  2020-05-31 15:10  progressBar\.vs\progressBar\v16\Server\sqlite3\storage.ide
     目录           0  2020-05-31 14:05  progressBar\progressBar\
     目录           0  2020-05-31 09:52  progressBar\progressBar\bin\
     目录           0  2020-05-31 10:19  progressBar\progressBar\bin\Debug\
     文件       11776  2020-05-31 14:05  progressBar\progressBar\bin\Debug\progressBar.exe
     文件       30208  2020-05-31 14:05  progressBar\progressBar\bin\Debug\progressBar.pdb
     文件        2797  2020-05-31 14:05  progressBar\progressBar\Form1.cs
     文件        9696  2020-05-31 14:05  progressBar\progressBar\Form1.Designer.cs
     文件        6011  2020-05-31 14:05  progressBar\progressBar\Form1.resx
     目录           0  2020-05-31 09:52  progressBar\progressBar\obj\
     目录           0  2020-05-31 15:11  progressBar\progressBar\obj\Debug\
     文件        1423  2020-05-31 15:11  progressBar\progressBar\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6863  2020-05-31 09:52  progressBar\progressBar\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件          42  2020-05-31 09:52  progressBar\progressBar\obj\Debug\progressBar.csproj.CoreCompileInputs.cache
     文件         757  2020-05-31 10:19  progressBar\progressBar\obj\Debug\progressBar.csproj.FileListAbsolute.txt
     文件        1012  2020-05-31 14:05  progressBar\progressBar\obj\Debug\progressBar.csproj.GenerateResource.cache
     文件       10568  2020-05-31 15:11  progressBar\progressBar\obj\Debug\progressBar.csprojAssemblyReference.cache
     文件       11776  2020-05-31 14:05  progressBar\progressBar\obj\Debug\progressBar.exe
     文件         180  2020-05-31 14:05  progressBar\progressBar\obj\Debug\progressBar.Form1.resources
     文件       30208  2020-05-31 14:05  progressBar\progressBar\obj\Debug\progressBar.pdb
     文件         180  2020-05-31 10:19  progressBar\progressBar\obj\Debug\progressBar.Properties.Resources.resources
     目录           0  2020-05-31 09:52  progressBar\progressBar\obj\Debug\TempPE\
     文件         492  2020-05-31 09:52  progressBar\progressBar\Program.cs
............此处省略8个文件信息

评论

共有 条评论