Share via


MaskedTextBox

Click here for larger image

The new MaskedTextBox in Windows Forms 2.0 is an edit control that allows developers to specify a mask string to indicating the shape of accepted input.

The mask language is very similar to that of the VB6 MaskEd control and the Access mask language. A Mask editor is provided which contains a list of useful masks. This editor also lets a developer create custom masks and test the chosen mask.

At runtime, the MaskedTextBox raises an event when invalid character is entered. The control also supports databinding via the InputText and OutputText properties.