TxtDigital.cs 492 B

1234567891011121314151617181920212223
  1. 
  2. using System.Drawing;
  3. using System.Windows.Forms;
  4. namespace Dongke.WinForm.Controls
  5. {
  6. /// <summary>
  7. /// 数字输入文本框(数字)
  8. /// </summary>
  9. [ToolboxBitmap(typeof(TextBox))]
  10. public class TxtDigital : TextBoxCodeBase
  11. {
  12. #region 构造函数
  13. /// <summary>
  14. /// 数字输入文本框(数字)
  15. /// </summary>
  16. public TxtDigital()
  17. {
  18. this.Rejected = "[^0-9]";
  19. }
  20. #endregion
  21. }
  22. }