在.netC#里怎么重写一个TextBox控件

在.netC#里怎么重写一个TextBox控件


2024年1月8日发(作者:)

[ort("")] static extern int ReleaseDC(IntPtr hWnd, IntPtr hDC);

private Color _BorderColor = gb(0xA7, 0xA6, 0xAA); private Color _HotColor = ;

private new BorderStyle BorderStyle { get { return ingle; } } #region

[Category("Appearance"), Description("Border color, Only for BorderStyle equal FixedSingle"), DefaultValue(typeof(Color), "#A7A6AA")] public Color BorderColor { get { return this._BorderColor; } set { this._BorderColor = value; date(); } }

[Category("Appearance"), Description("Hot color, Only for BorderStyle equal FixedSingle"), DefaultValue(typeof(Color), "#996699")] public Color HotColor { get { return this._HotColor; } set { this._HotColor = value; date(); } } #endregion

public WTextBox() : base() { } protected override void OnMouseHover(EventArgs e) { eHover(e);

{ string text = a() as string ; if (text == null ) return ; foreach ( char c in text) { // 查看是否含有过滤字符以外的字符!

if ( this .m_f(c) < 0 ) return ; } } break ; }

// 处理消息

base .WndProc( ref m); }


发布者:admin,转转请注明出处:http://www.yc00.com/web/1704694704a1363262.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信