View Full Version : Display Masks for controls such as TextField

29 Feb 2012, 1:28 AM
Hi all, I'm using Text Fields for data entry, where I know the data will be in a particular format. I'd like to set a display mask on the control in such occasions. For example a textbox for entering a reference number might have a mask of __/__/__ The mask is shown as a sort of template where the user fills in the gaps. I canít see any direct support for this such as a simple property. Is there any such support for this. I see regular expressions etc, but this appears to be more for validation purposes.

Thanks for any info.

Derek Brennan.

29 Feb 2012, 6:56 AM
You can listen for the key down and reset the value after formatting it.