TxtPassport.cs 476 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 TxtPassport : TextBoxCodeBase
  11. {
  12. #region 构造函数
  13. /// <summary>
  14. /// 护照输入文本框
  15. /// </summary>
  16. public TxtPassport()
  17. {
  18. this.Rejected = "[^0-9a-zA-Z]";
  19. }
  20. #endregion
  21. }
  22. }