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

资源简介

带进度百分比和滑块的进度条,可自定义颜色和字体

资源截图

代码片段和文件信息

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

namespace ProgressBarEx
{
    public class MySlider:Control
    {

        Rectangle foreRect;
        Rectangle backRect;
        Rectangle setRect;

        Color backgroundColor = Color.White;
        Color foregroundColor = Color.Gray;
        Color setRectColor = Color.Black;
        Color fontColor = Color.Black;

        int maximum = 100;
        int minimum = 0;
        double myValue = 0;

        bool showPercent;
        float fontSize = 9;
        FontFamily myFontFamily = new FontFamily(“宋体“);



        [Category(“General“) Description(“Show Percent

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-04-02 22:57  CompositeControl\
     目录           0  2020-04-01 22:12  CompositeControl\.vs\
     目录           0  2020-04-01 22:12  CompositeControl\.vs\CompositeControl\
     目录           0  2020-04-01 22:12  CompositeControl\.vs\CompositeControl\v15\
     文件       67584  2020-04-02 22:59  CompositeControl\.vs\CompositeControl\v15\.suo
     目录           0  2020-04-01 22:12  CompositeControl\.vs\CompositeControl\v15\Server\
     目录           0  2020-04-01 22:12  CompositeControl\.vs\CompositeControl\v15\Server\sqlite3\
     文件           0  2020-04-01 22:12  CompositeControl\.vs\CompositeControl\v15\Server\sqlite3\db.lock
     文件        4096  2020-04-01 22:12  CompositeControl\.vs\CompositeControl\v15\Server\sqlite3\storage.ide
     文件       32768  2020-04-02 22:35  CompositeControl\.vs\CompositeControl\v15\Server\sqlite3\storage.ide-shm
     文件     3151832  2020-04-02 22:57  CompositeControl\.vs\CompositeControl\v15\Server\sqlite3\storage.ide-wal
     文件        1639  2020-04-02 22:56  CompositeControl\CompositeControl.sln
     目录           0  2020-04-02 22:56  CompositeControl\ProgressBarEx\
     目录           0  2020-04-01 22:23  CompositeControl\ProgressBarEx\bin\
     目录           0  2020-04-02 22:57  CompositeControl\ProgressBarEx\bin\Debug\
     文件        9728  2020-04-02 22:57  CompositeControl\ProgressBarEx\bin\Debug\ProgressBarEx.dll
     文件       28160  2020-04-02 22:57  CompositeControl\ProgressBarEx\bin\Debug\ProgressBarEx.pdb
     文件        9772  2020-04-02 22:56  CompositeControl\ProgressBarEx\Class1.cs
     目录           0  2020-04-01 22:23  CompositeControl\ProgressBarEx\obj\
     目录           0  2020-04-02 22:57  CompositeControl\ProgressBarEx\obj\Debug\
     文件        6954  2020-04-01 22:25  CompositeControl\ProgressBarEx\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件          42  2020-04-02 22:57  CompositeControl\ProgressBarEx\obj\Debug\ProgressBarEx.csproj.CoreCompileInputs.cache
     文件         472  2020-04-02 22:57  CompositeControl\ProgressBarEx\obj\Debug\ProgressBarEx.csproj.FileListAbsolute.txt
     文件        9728  2020-04-02 22:57  CompositeControl\ProgressBarEx\obj\Debug\ProgressBarEx.dll
     文件       28160  2020-04-02 22:57  CompositeControl\ProgressBarEx\obj\Debug\ProgressBarEx.pdb
     文件           0  2020-04-01 22:23  CompositeControl\ProgressBarEx\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
     文件           0  2020-04-01 22:23  CompositeControl\ProgressBarEx\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
     文件           0  2020-04-01 22:23  CompositeControl\ProgressBarEx\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
     目录           0  2020-04-01 22:23  CompositeControl\ProgressBarEx\obj\Debug\TempPE\
     文件        2351  2020-04-01 22:26  CompositeControl\ProgressBarEx\ProgressBarEx.csproj
     目录           0  2020-04-01 22:23  CompositeControl\ProgressBarEx\Properties\
............此处省略38个文件信息

评论

共有 条评论