HeaderPane
Main
Hide
Share Link
Print

Simple Edit Field

Without a mask (an empty SftMask.Mask property), an SftMask control is a single-line edit field that accepts any text, like a TextBox control. All other features remain available: the label, the ellipse button, autocomplete, the colors, undo, the clipboard, drag and drop and validation.

PropertyDescription
SftMask.MaxLengthThe maximum number of characters (32767 by default, also when set to 0). Characters beyond it are rejected, so a longer text is cut off.
SftMask.PasswordCharA character shown instead of every character of the text. The hidden text cannot be copied or cut.
SftMask.UseSystemPasswordCharShows the system's password character instead of every character of the text; it takes precedence over the SftMask.PasswordChar property.
SftMask.AllowEmptyWithoutMaskWhether an empty field is valid (see Validation). It is not valid by default.

A simple edit field can suggest earlier entries, files or folders while the user types (see AutoComplete), and an ellipse button can open the application's own selection dialog, such as a file dialog (see Ellipse Button).

C#

sftMask1.Mask = "";
sftMask1.MaxLength = 40;
sftMask1.UseSystemPasswordChar = true;

VB

SftMask1.Mask = ""
SftMask1.MaxLength = 40
SftMask1.UseSystemPasswordChar = True