Breyta

Deila með


MaskedTextBox.MaxLength Property

Definition

Gets or sets the maximum number of characters the user can type or paste into the text box control. This property is not supported by MaskedTextBox.

public:
 virtual property int MaxLength { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public override int MaxLength { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.MaxLength : int with get, set
Public Overrides Property MaxLength As Integer

Property Value

This property always returns 0.

Attributes

Remarks

See the Mask property and the Position property in the MaskInputRejectedEventArgs class for information about how to determine the maximum length of a string in a MaskedTextBox.

Applies to

See also