MaskTextbox

Use the KMaskTextbox component to format and restrict user input according to a specified mask pattern (e.g. for phone numbers, dates, credit cards).

Phone Number
Raw value:
Smart Date (DD/MM/YYYY)

DD = day (01-31), MM = month (01-12), YYYY = year (4 digits)

Raw value:
US Date (MM-DD-YYYY)

MM = month (01-12), DD = day (01-31), YYYY = year

Raw value:
Time (24-hour)

HH = hour (00-23), mm = minute (00-59), ss = second (00-59)

Raw value:
Credit Card

Mask: 9999 9999 9999 9999

Raw value:
Social Security Number

Mask: 999-99-9999

Raw value:
Auto UPPERCASE

Mask: AAA-AAA (A = auto-uppercase) - Type lowercase letters, they convert!

Raw value:
Auto lowercase

Mask: aaa-aaa (a = auto-lowercase) - Type uppercase, they convert!

Raw value:
License Plate (Any Case)

Mask: LLL-9999 (L = any letter, keeps case as typed)

Raw value:
mixed format

Mask: AA99-aaa-*** (A=upper, 9=digit, a=lower, *=alphanumeric)

Raw value:
Validation States
Select state