HeaderPane
Main
New productC# · VB.NET

SftMask/NET 3.0

Masked edit control

A masked edit control for Windows Forms: an edit mask defines what can be entered at each position, digits, letters, characters from a list or numbers with digit grouping and ranges, with literals the user types over. Decimal, integer and hexadecimal numeric fields with up and down buttons, a popup calculator, autocomplete from earlier entries, files and folders, an ellipsis button, prompt characters, a label, colors for invalid contents, validation and conversion of the contents to a type. It covers all functions of the Windows Forms MaskedTextBox and NumericUpDown controls. Version 3.0 runs on the .NET Framework and on .NET 10, with Visual Studio designer support on both, and supports dark mode, per-monitor high-DPI scaling and screen readers.

  • Windows 10 and newer
  • .NET Framework 4.7+ and .NET 10+
  • Royalty-free
  • 1 year of support included

A masked edit control for Windows Forms, with numeric fields, a calculator and autocomplete.

SftMask/NET is a masked edit control for Windows Forms: an edit mask defines what can be entered at each position, digits, letters, characters from a list or numbers with digit grouping and ranges, with literals such as parentheses and dashes that the user types over. At home on .NET 10 and on modern Windows.

Numeric fields offer up and down buttons and a popup calculator, earlier entries, files and folders are suggested while the user types, and a label, prompt characters and colors show what is expected. It covers all functions of the Windows Forms MaskedTextBox and NumericUpDown controls. Version 3.0 runs on the .NET Framework and on .NET 10, with the Visual Studio designer on both.

Coming from the Windows Forms MaskedTextBox or NumericUpDown? See how they compare with SftMask/NET and where each of their functions is found.

Masked edit Numeric fields Up/down buttons Calculator Autocomplete Validation Right-to-left Dark mode

(_)

Edit masks

Required and optional digits, letters, letters or digits and any characters, lists and ranges of allowed characters, with literals the user types over.

  • Uppercase, lowercase and password blocks
  • The culture's separators and currency symbol
  • Value tokens that read and set parts of the contents

123

Numeric fields

Decimal, integer and hexadecimal fields with digit grouping, negative numbers, leading zeros and ranges, several of them in one mask.

  • Numbers entered from the right, as on a calculator
  • Up and down buttons with accelerated spinning
  • The four parts of an IP address in one control

+=

A popup calculator

Typing +, -, * or / into an amount opens a calculator at the field, with the numbers and operators entered so far on a tape above its entry line.

  • Colors and the number of fractional digits
  • Negative numbers in the calculator too
  • An event to cancel it before it opens

Ab

Autocomplete

Earlier entries, files and folders are suggested in a list while the user types.

  • Entries kept in a file, optionally encrypted
  • The application's own items at the top or bottom of the list
  • Events to accept or reject each suggestion

[_]

Clear input

Prompt characters and underlined input positions show what is expected, and a label shows a currency symbol or a unit next to the input.

  • Colors for literals, the selection, focus and invalid contents
  • A formatted text while the control does not have the focus
  • Insert and overtype modes and automatic advance to the next field

[v]

Validation

Required positions and ranges are checked, together with the application's own checks.

  • Conversion of the contents to a type, as with the MaskedTextBox control
  • Property pages with predefined masks
  • A field to try a mask at design time

Screenshots

Try it in the demo.

The demo sample shows fields for a phone number, a ZIP+4 code, an amount with the popup calculator, a percentage, a quantity, an IP address, a hexadecimal color, a license key, a PIN, a city with autocomplete and a file name with an ellipsis button, with options for the culture, dark mode, high contrast, the input mode, the prompt character and the colors for invalid contents.

.NET Framework and .NET 10

One product for both .NET platforms.

SftMask/NET 3.0 runs in .NET Framework 4.7 (or later) applications and in .NET 10 (or later) Windows Forms applications, with the same classes, properties, methods and events on both. .NET projects reference the Softelvdm.SftMaskNET NuGet package from the package source Setup registers; .NET Framework projects reference the assembly directly. In both, Visual Studio's designer hosts the control: place it from the toolbox, edit it in the Properties window, and set up the mask, the calculator and autocomplete in the property pages.

Built for modern Windows

Built for how Windows looks and works today.

Version 3.0 follows the system's choices, so your forms do too.

Dark mode

Set one property and the control follows the Windows light/dark setting, calculator and autocomplete list included, switching when the user changes it.

Per-Monitor v2 DPI

The control, its buttons and its popups are sized for the DPI of the monitor showing them.

Screen readers

Built-in UI Automation support makes the control, its buttons, the calculator and the autocomplete list available to Narrator, NVDA, JAWS and others.

High Contrast

Honors the Windows contrast theme at your option, as Microsoft's accessibility guidelines require.

Requirements and distribution

Development

  • Visual Studio 2019 and newer
  • C#, VB.NET and any .NET language for Windows Forms
  • NuGet package for .NET projects, assembly reference for .NET Framework projects

Platforms

  • .NET Framework 4.7 or later
  • .NET 10 or later
  • Windows 10 and newer, including Server editions

Compatibility

  • One assembly, Softelvdm.SftMaskNET.dll
  • The same API on the .NET Framework and on .NET 10
  • Can be used in the same application as SftTree/NET 3.0, SftTabs/NET 3.0, SftDate/NET 3.0 and SftBox/NET 3.0

Distribution

  • The redistributable assembly ships royalty-free with your application
  • Run-time use under the license agreement
  • Each developer licenses their own copy

Find a License that Fits Your Needs

Licenses

Find a license that fits

Every license includes a full year of support subscription: free product support, new major and minor releases, hotfixes and updates.

Read the license agreement
Single Developer License
$299one developer

For one developer, on any number of their own computers.

25 DevelopersSave 53%
$3,500one license number

One license number covering 25 developers on your team.

Prices in US dollars. 30-day money-back guarantee. Need the source code? Ask sales about an Enterprise License.

Save with the bundle

.NET Control Bundle · from $ 699.00

SftBox/NET 3.0, SftDate/NET 3.0, SftMask/NET 3.0, SftTabs/NET 3.0 and SftTree/NET 3.0 in one hugely discounted bundle.

View the bundle