I’m currently working on a Windows Forms application and I need to have a TextBox which doesn’t limit input size to Int32.MaxValue.
The problem is that MaxLength is an Int32 Property on the TextBox and I of course can’t set a number which is greater than that as its value.
Ideally, I don’t want to set any number at all and completely ‘disable’ this check.
Is there any way I can have a TextBox which doesn’t limit the input size?
Set it to zero
From: http://msdn.microsoft.com/en-us/library/system.windows.forms.textboxbase.maxlength.aspx
EDIT for windows forms