MaxText
MaxText() Event
Called when the maximum number of characters set by limittext is reached
This event is triggered when the user reaches the previously set maximum text length for the edit control. This maximum was set using the LimitText property thus:
.EditControl1.LimitText = 40
The event is raised if the character typed will not fit into the limit. Thus it occurs before a character is accepted and not afterwards. If the event fires then the character that triggered it will not be entered into the text of the control.