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.
| Property | Description |
|---|---|
| SftMask.MaxLength | The 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.PasswordChar | A character shown instead of every character of the text. The hidden text cannot be copied or cut. |
| SftMask.UseSystemPasswordChar | Shows the system's password character instead of every character of the text; it takes precedence over the SftMask.PasswordChar property. |
| SftMask.AllowEmptyWithoutMask | Whether 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