using System.Drawing; using System.Windows.Forms; namespace Dongke.WinForm.Controls { /// /// 电话输入文本框 /// [ToolboxBitmap(typeof(TextBox))] public class TxtPhone : TextBoxCodeBase { #region 构造函数 /// /// 电话输入文本框 /// public TxtPhone() { this.Rejected = "[^0-9 \\-()]"; //this.Regular = @"^[1-9]\d{5}$"; } #endregion } }