91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 7KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2021-05-05
  • 語言: C#
  • 標(biāo)簽: c#??winform??button??

資源簡介

c# winform 超漂亮按鈕 控件,一個自定義控件,一個重寫button類

資源截圖

代碼片段和文件信息

using?System;
using?System.Data;
using?System.Drawing;
using?System.Collections;
using?System.Windows.Forms;
using?System.ComponentModel;
using?System.Drawing.Drawing2D;

namespace?CRB.Platform.WinUI.Core.WorkflowOp.Ctrl
{
///?
///?A?replacement?for?the?Windows?Button?Control.
///?

[DefaultEvent(“Click“)]
public?class?BeautyButton?:?System.Windows.Forms.UserControl
{

#region?-??Designer??-

private?System.ComponentModel.Container?components?=?null;

///?
///?Initialize?the?component?with?it‘s
///?default?settings.
///?

????????????public?BeautyButton()
{
InitializeComponent();

this.Setstyle(Controlstyles.AllPaintingInWmPaint?true);
this.Setstyle(Controlstyles.DoubleBuffer?true);
this.Setstyle(Controlstyles.ResizeRedraw?true);
this.Setstyle(Controlstyles.Selectable?true);
this.Setstyle(Controlstyles.SupportsTransparentBackColor?true);
this.Setstyle(Controlstyles.UserPaint?true);
this.BackColor?=?Color.Transparent;
mFadeIn.Interval?=?30;
mFadeOut.Interval?=?30;
}

///?
///?Release?resources?used?by?the?control.
///?

protected?override?void?Dispose(?bool?disposing?)
{
if(?disposing?)
{
if(components?!=?null)
{
components.Dispose();
}
}
base.Dispose(?disposing?);
}

#region?-??Component?Designer?generated?code??-

private?void?InitializeComponent()
{
//?
//?VistaButton
//?
this.Name?=?“VistaButton“;
this.Size?=?new?System.Drawing.Size(100?32);
this.Paint?+=?new?System.Windows.Forms.PaintEventHandler(this.VistaButton_Paint);
this.KeyUp?+=?new?System.Windows.Forms.KeyEventHandler(this.VistaButton_KeyUp);
this.KeyDown?+=?new?System.Windows.Forms.KeyEventHandler(this.VistaButton_KeyDown);
this.MouseEnter?+=?new?System.EventHandler(this.VistaButton_MouseEnter);
this.MouseLeave?+=?new?System.EventHandler(this.VistaButton_MouseLeave);
this.MouseUp?+=new?MouseEventHandler(VistaButton_MouseUp);
this.MouseDown?+=?new?System.Windows.Forms.MouseEventHandler(this.VistaButton_MouseDown);
this.GotFocus?+=new?EventHandler(VistaButton_MouseEnter);
this.LostFocus?+=new?EventHandler(VistaButton_MouseLeave);
this.mFadeIn.Tick?+=?new?EventHandler(mFadeIn_Tick);
this.mFadeOut.Tick?+=?new?EventHandler(mFadeOut_Tick);
this.Resize?+=new?EventHandler(VistaButton_Resize);
}

#endregion

#endregion

#region?-??Enums??-

///?
///?A?private?enumeration?that?determines?
///?the?mouse?state?in?relation?to?the?
///?current?instance?of?the?control.
///?

enum?State?{None?Hover?Pressed};

///?
///?A?public?enumeration?that?determines?whether
///?the?button?background?is?painted?when?the?
///?mouse?is?not?inside?the?ClientArea.
///?

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????4791??2016-11-29?14:58??CrystalButton.cs

?????文件??????21950??2016-11-29?14:29??BeautyButton.cs

?????文件???????6440??2016-11-29?14:24??BeautyButton.resx

-----------?---------??----------?-----??----

????????????????33181????????????????????3


評論

共有 條評論