摘要:
这是一个自定义控件,继承了TextBox,在TextBox基础上添加了4个属性(下载):1.ControlType 文本框需要验证的类型2.ControlTypeText 显示的文字(只读)3.IsNULL 填写的内容是否可空4.IsPass 格式是否正确(在文本框失去焦点时验证,只读)代码如下: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Windows.Forms; 6 usin...
阅读全文