Are you trying to change the MaxLength property during runtime?