Version

MaxLength Property (TBTextBox)

The maximum length of a text that a user may enter into this text box.
Syntax
'Declaration
 
Public Property MaxLength As Integer
public int MaxLength {get; set;}
Exceptions
ExceptionDescription
System.ArgumentExceptionThrown when the value assigned to MaxLength is negative or less than zero.
Remarks

This limit is only checked at run-time.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also