I\'m using a System.Windows.Forms.TextBox. According to the docs, the MaxLength property controls the amount of characters enter a user can type or
System.Windows.Forms.TextBox
MaxLength
The Text property of System.Windows.Forms.TextBox is a string, so in theory it can be the max length of a string