HeaderPane
Main
Hide
Share Link
Print

Auto-Advance and Auto-Tab

Auto-Advance

With the SftMask.AutoAdvance property, the caret moves to the next field of the mask as soon as a numeric field is full. After the three digits of the first part of an IP address, the caret is in the second part, so the up and down buttons and the Up and Down keys work on the part the user types next. Without auto-advance, the caret stays at the end of the full field until the next character is typed, which is then entered in the next field; typing 192168001001 fills all four parts either way.

Auto-Tab

With the SftMask.AutoTab property, the input focus moves to the next control as soon as the contents are valid after the user typed a character (SftMask.IsValid property, see Validation). Together with fixed-length masks, such as a license key or a ZIP code, the user can fill a whole form without pressing Tab. A numeric field is valid as soon as it holds a value in its range, often after its first digit, so auto-tab suits masks that are valid only when they are complete. Auto-tab applies only to controls with a mask, and only to typed characters.

See also Tabbing Within the Control.