• 大小: 4.67M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-12
  • 语言: ASP
  • 标签: 其他  

资源简介

51aspx_IntelligentProducePaper03a32d1f-f81f-4d06-800e-a145b0bf1ba3.zip

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.ComponentModel;

namespace CSharpWin
{
    /* 作者:Starts_2000
     * 日期:2009-07-31
     * 网站:http://www.csharpwin.com CS 程序员之窗。
     * 你可以免费使用或修改以下代码,但请保留版权信息。
     * 具体请查看 CS程序员之窗开源协议(http://www.csharpwin.com/csol.html)。
     */

    public class ButtonEx : Button
    {
        private Color _baseColor = Color.FromArgb(140 202 238);
        private ControlState _controlState;
        private int _imageWidth = 18;
        private Roundstyle _roundstyle = Roundstyle.All;
        private int _radius = 8;

        public ButtonEx()
            : base()
        {
            Setstyle(
                Controlstyles.UserPaint |
                Controlstyles.AllPaintingInWmPaint |
                Controlstyles.OptimizedDoubleBuffer |
                Controlstyles.ResizeRedraw |
                Controlstyles.SupportsTransparentBackColor true);
        }

        [DefaultValue(typeof(Color)“51 161 224“)]
        public Color baseColor
        {
            get { return _baseColor; }
            set
            {
                _baseColor = value;
                base.Invalidate();
            }
        }

        [DefaultValue(18)]
        public int ImageWidth
        {
            get { return _imageWidth; }
            set
            {
                if (value != _imageWidth)
                {

                    _imageWidth = value < 12 ? 12 : value;
                    base.Invalidate();
                }
            }
        }

        [DefaultValue(typeof(Roundstyle) “1“)]
        public Roundstyle Roundstyle
        {
            get { return _roundstyle; }
            set
            {
                if (_roundstyle != value)
                {
                    _roundstyle = value;
                    base.Invalidate();
                }
            }
        }

        [DefaultValue(8)]
        public int Radius
        {
            get { return _radius; }
            set
            {
                if (_radius != value)
                {
                    _radius = value < 4 ? 4 : value;
                    base.Invalidate();
                }
            }
        }

        internal ControlState ControlState
        {
            get { return _controlState; }
            set
            {
                if (_controlState != value)
                {
                    _controlState = value;
                    base.Invalidate();
                }
            }
        }

        protected override void onmouseenter(EventArgs e)
        {
            base.onmouseenter(e);
            ControlState = ControlState.Hover;
        }

        protected override void onmouseleave(EventArgs e)
        {
            base.onmouseleave(e);
            ControlState =

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件        3115  2011-11-21 10:45  51Aspx源码必读.txt
     文件        4945  2011-11-21 10:45  from.gif
     文件        1948  2011-11-21 10:45  IntelligentProducePaper.sln
     文件       66048  2011-11-21 10:45  IntelligentProducePaper.suo
     文件         125  2011-11-21 10:45  最新Asp.Net源码下载.url
     文件       19419  2011-11-21 10:45  ButtonEx\ButtonEx.cs
     文件        3321  2011-11-21 10:45  ButtonEx\ButtonEx.csproj
     文件         891  2011-11-21 10:45  ButtonEx\ControlState.cs
     文件        4927  2011-11-21 10:45  ButtonEx\GraphicsPathHelper.cs
     文件        1172  2011-11-21 10:45  ButtonEx\Roundstyle.cs
     文件       14848  2011-11-21 10:45  ButtonEx\bin\Debug\ButtonEx.dll
     文件       36352  2011-11-21 10:45  ButtonEx\bin\Debug\ButtonEx.pdb
     文件         240  2011-11-21 10:45  ButtonEx\obj\ButtonEx.csproj.FileList.txt
     文件        1509  2011-11-21 10:45  ButtonEx\obj\Debug\ButtonEx.csproj.FileListAbsolute.txt
     文件         789  2011-11-21 10:45  ButtonEx\obj\Debug\ButtonEx.csproj.GenerateResource.Cache
     文件       14848  2011-11-21 10:45  ButtonEx\obj\Debug\ButtonEx.dll
     文件       36352  2011-11-21 10:45  ButtonEx\obj\Debug\ButtonEx.pdb
     文件         180  2011-11-21 10:45  ButtonEx\obj\Debug\CSharpWin.Properties.Resources.resources
     文件        6144  2011-11-21 10:45  ButtonEx\obj\Debug\Refactor\ButtonEx.dll
     文件        4608  2011-11-21 10:45  ButtonEx\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
     文件        1200  2011-11-21 10:45  ButtonEx\Properties\AssemblyInfo.cs
     文件        2842  2011-11-21 10:45  ButtonEx\Properties\Resources.Designer.cs
     文件        5612  2011-11-21 10:45  ButtonEx\Properties\Resources.resx
     文件        1107  2011-11-21 10:45  ButtonEx\Properties\Settings.Designer.cs
     文件         249  2011-11-21 10:45  ButtonEx\Properties\Settings.settings
     文件     3145728  2011-11-21 10:45  DB_51aspx\IntelligentProducePaperDB.mdf
     文件     1048576  2011-11-21 10:45  DB_51aspx\IntelligentProducePaperDB_1.ldf
     文件       17656  2011-11-21 10:45  IntelligentProducePaper\CreatePaper.cs
     文件       74695  2011-11-21 10:45  IntelligentProducePaper\CreatePaper.Designer.cs
     文件      252082  2011-11-21 10:45  IntelligentProducePaper\CreatePaper.resx
     文件        4480  2011-11-21 10:45  IntelligentProducePaper\CreatePaper_hand.cs
............此处省略77个文件信息

评论

共有 条评论