https://store-images.s-microsoft.com/image/apps.28692.4e8ae3b0-fa1b-4822-ae47-563727c61eb5.466b266c-75f7-4cf2-b457-4a713f602804.8a20e280-379f-442a-a3db-b77928787e51

Masked Textbox

by Craftware Technologies, LLC

Masked textbox provides an easy and reliable way to collect user input based on a standard mask.

Masked textbox control is a specialized input field commonly used in user interfaces to enforce a specific format for data entry. It restricts user input by defining a mask—such as "###-###-####" fora phone number—where certain characters are fixed, and others must adhere to predefined rules, like digits or letters. This control enhances data validation and user experience by providing visual cues and preventing invalid entries in real-time.


The component supports various masks to support your needs.

    • Standard mask: standard characters such as letters and numbers.
    • Custom mask: other than the standard mask elements, any custom character also can be a mask element by defining rules for it.
    • Regular expression: mask elements can be regular expressions, which is useful when defining user-specific data such as IP addresses.


Mask Examples:

    • ###### - sets mask with the mask element '#' which accepts any single digit from '0' to '9'
    • LLLLLL - sets mask format with the mask element 'L' which allows only alphabets ('A-Z and a-z')
    • &&&&& - sets mask format with the mask element '&' which allows alpha characters and numbers test >LLL<
    • >LLL<LLL - sets mask format with the mask element '>' which converts all characters that follow to upper case and '<' which converts all characters that follow to lower case
    • \\A999 - sets mask format with the mask element '\\' which turns mask element 'A' into a literal, and it displays the alphabet 'A'

At a glance

https://store-images.s-microsoft.com/image/apps.35200.4e8ae3b0-fa1b-4822-ae47-563727c61eb5.466b266c-75f7-4cf2-b457-4a713f602804.32b70bac-e97a-49e3-896e-3ef95068a318
https://store-images.s-microsoft.com/image/apps.55120.4e8ae3b0-fa1b-4822-ae47-563727c61eb5.466b266c-75f7-4cf2-b457-4a713f602804.ebd153b0-10ec-402e-b836-73d9f759c15c