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

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

資源簡介

最近在做Winform(C#)的項(xiàng)目,需要設(shè)置Textbox的背景顏色為透明,但是Textbox不支持透明的屬性.在codeproject上找到了一個(gè)外國重寫的類

資源截圖

代碼片段和文件信息


/*
?////////////////////////////////////////////////////////////
?/// DISCLAIMER /////
?/// READ?BEFORE?USING?THIS?CODE!! /////
?/// THIS?CODE?CREATED?AND?OWNED?????/////
?/// BY?AARON?DILLIARD. /////
?////////////////////////////////////////////////////////////

Code?in?this?disclaimer?will?apply?to?the?source?code
and?all?project?data?included?with?it?or?generated?from?it
including?but?not?limited?to?project?files?.dll?files?.exe?files.
?
This?code?is?provided?AS?IS?with?no?warranties.
By?using/viewing?this?code?you?assume?all?responsibilities
for?its?use.

This?code?will?not?be?duplicated?in?parts?or?in?its?
entirety?without?this?disclaimer?in?tact?and?full?credit
given?to?the?creator?Aaron?Dilliard.?

If?any?code?is?inherited?from?or?based?off?of?this?code?
this?disclaimer?must?accompany?any?code?directly?copied
or?“paraphrased“?from?this?code.

You?will?not?sell?this?code?in?parts?or?in?its?entirety
under?any?circumstances.??Any?type?of?selling/financial?
gain?from?this?code?is?strictly?prohibited?unless?
permission?is?given?by?the?creator?Aaron?Dilliard.

Parts?of?the?AlphaUtils?Namespace?are?based?off?of?concepts
from?Bob?Bradley‘s?AlphaBlendTextBox.??

By?viewing?or?using?this?code?you?acknowledge?that?its?creator
accepts?no?responsiblity?or?liablity?for?it?whatsoever
and?agree?to?this?disclaimer.

If?you?do?not?agree?do?not?view/use?this?code.
*/

#region?CODE
#region?Imports
using?System;
using?System.Windows.Forms;
using?System.Drawing;
using?System.Drawing.Imaging;
using?System.ComponentModel;
using?System.Runtime.Serialization;
using?System.Runtime.InteropServices;
using?System.Collections;
using?System.Threading;
using?System.IO;
using?System.Timers;
#endregion

#region?AlphaUtils?Namespace
namespace?AlphaUtils
{
#region?AlphaTextBox?Class

///?
///?Creates?a?TextBox?that?can?have?a?Transparent?Background.
///?

public?class?AlphaTextBox:TextBox
{
public?AlphaTextBox()
{
InitializeComponent();
}//default?constructor

#region?Private?Globals
private?delegate?void?SMDel(ref?Message?M);
private?Container?components;
private?AlphaPanel?APanel;
private?Utilities?TBUtils;
private?Bitmap?ClientRegionBitmap;
private?PointF?CaretPosition;
private?System.Timers.Timer?blinkCaretTimer;
private?bool?DrawCaret;
private?bool?SelectingText;
private?Color?InternalAlphaBackColor;
private?bool?InternalBGSet;
private?int?InternalAlphaAmount;
#endregion

#region?Protected?Globals
//This?is?a?delegate?so?the?AlphaPanel?can?
//pass?mouse?messages?to?the?AlphaTextBox
protected?internal?Delegate?STClientDel;

#endregion

#region?Private?Methods

private?void?InitializeComponent()
{
this.Setstyle(Controlstyles.SupportsTransparentBackColor?true);

components=new?Container();
STClientDel=new?SMDel(this.DefWndProc);
TBUtils=new?Utilities(STCli

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????53879??2006-02-17?12:34??AlphaTextBox.cs

評(píng)論

共有 條評(píng)論