TextBox.MaxLength (gb.qt4)

Property MaxLength As Integer

Returns or sets the maximum length of the text.