New to Telerik UI for WinForms? Download free 30-day trial

Getting Started with WinForms MaskedEditBox

This article shows how you can start using RadMaskedEditBox.

Adding Telerik Assemblies Using NuGet

To use RadMaskedEditBox when working with NuGet packages, install the Telerik.UI.for.WinForms.AllControls package. The package target framework version may vary.

Read more about NuGet installation in the Install using NuGet Packages article.

With the 2025 Q1 release, the Telerik UI for WinForms has a new licensing mechanism. You can learn more about it here.

Adding Assembly References Manually

When dragging and dropping a control from the Visual Studio (VS) Toolbox onto the Form Designer, VS automatically adds the necessary assemblies. However, if you're adding the control programmatically, you'll need to manually reference the following assemblies:

  • Telerik.Licensing.Runtime
  • Telerik.WinControls
  • Telerik.WinControls.UI
  • TelerikCommon

The Telerik UI for WinForms assemblies can be install by using one of the available installation approaches.

Defining the RadMaskedEditBox

Here is how to quickly configure two RadMaskedEditBox controls. One uses a custom phone number mask, the second as a predefined short date pattern.

Figure 1: RadMaskedEditBox Setup

WinForms RadMaskedEditBox Setup

  1. Drop two RadMaskedEditBox controls on a form.

  2. In the first RadMaskedEditBox set the MaskType property to Standard and the Mask property to "(###) ###-###". See *Standard Masks for more information on how this mask is constructed.*

  3. In the second RadMaskedEditBox set the MaskType property to DateTime and the Mask property to "d". * See Date and Time Masks** for more information on how this mask is constructed.*

  4. Press F5 to run the application. Notice the behavior in the first RadMaskedEditBox where the literals "(" and ")" are jumped over and cannot be replaced by the user. Also notice that mask characters are represented by the character in the PromptChar property (by default this is the underscore "_" character) when blank.

See Also

Telerik UI for WinForms Learning Resources

In this article