MaskedTextBox Constructor ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the MaskedTextBox class using defaults.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public MaskedTextBox()

The default MaskedTextBox() constructor sets the MaskedTextProvider property to a null mask, represented by the string "<>". A null mask will accept any combination of characters as input.

.NET Framework
Available since 2.0
Return to top