using System.Drawing; using System.Windows.Forms; namespace Dongke.WinForm.Controls { /// /// 数字输入文本框(数字) /// [ToolboxBitmap(typeof(TextBox))] public class TxtDigital : TextBoxCodeBase { #region 构造函数 /// /// 数字输入文本框(数字) /// public TxtDigital() { this.Rejected = "[^0-9]"; } #endregion } }