Version

InputMask Property

Gets sets input mask used to filter keyboard entries.
Syntax
'Declaration
 
Public Property InputMask As String
public string InputMask {get; set;}
Remarks

Default value is set to "CCCCCCCCCCCC".

The mask may contain literal characters and input-mask-flags such as

  • & - any keyboard character (entry is required)
  • L - letter (entry is required)
  • 0 - digit (entry is required)
  • A - letter or digit (entry is required)
  • C - any keyboard character (entry is optional)
  • ? - letter (entry is optional)
  • # - digit or +/- (entry is optional with replacement by EmptyPositionChar or PadChar)
  • 9 - digit (entry is optional)
  • a - letter or digit (entry is optional)
  • > - all letters to the right are converted to the upper case
  • < - all letters to the right are converted to the lower case

For information on how to customize input masks, see the following topic section of the help: Developer's Guide > The Toolset > Controls and Components > WebMaskEdit.

Notes:

  • If in front of any flag-character appears the "\" (escape) character, then that character becomes the literal part of mask. For example, if mask is set to the "A\A\BB\\##\99" and control has no data, then text in edit mode will appear as "_A\BB\#_9_". Where the "_" are available positions for entry.
  • To cancel upper/lower case convertion which was set by the > or < flag, that flag should be used one more time. For example, if mask is set to the ">CC->CC->CC" and user entered the "XxXxXx", then resulting text should appear as "XX-Xx-XX".
  • While control has no input focus, the optional empty mask positions are not displayed.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also