我有一个具有遮罩的TextEdit。
MaskType = Regular
编辑遮罩: \d?\d?\d?\d?\d?
我需要的是,输入将是从右到左。
例如(“ 0”是占位符):
00000
00001
00012
00123
.....
直到达到最大长度。
有什么建议?
使用MaskType.Numeric
和"00000"
编辑蒙版:
textEdit1.Properties.Mask.EditMask = "00000";
textEdit1.Properties.Mask.MaskType = MaskType.Numeric;
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句