Having problems with a mask in C#
- by Nard Dog
I guess this would be a DevExpress mask, but here is what I have:
var dlEdit = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit();
dlEdit.Mask.MaskType = MaskType.RegEx;
dlEdit.Mask.EditMask = "\\d{1,10}";
I'm trying to get a number that can be up to 10 digits in length that WILL accept leading 0's, as it is now it will show the leading 0's (ex. 0032421243) until the field is clicked off in which case it removes them. I tried a numeric masktype but same thing only it wouldn't let me enter the 0's to start with at all. I thought this would be my answer but this custom type isn't. Can someone point me in the right direction for what I need? Maybe a different type of mask or something?