Occurs after the CustomFormat property changes, and before the Format event occurs. The event allows you to set the maximum allowable size of the formatted string so the control can be painted in the screen with ample space for the user-formatted string.
Syntax
Private Sub object_FormatSize([index As Integer], CallbackField As String, Size As Long)
The FormatSize event syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
index | An integer that uniquely identifies a control if it's in a control array. |
CallbackField | A string expression specifying the callback substring. |
Size | A long integer specifying the size of the string that will be returned in the Format event. |
Remarks
The FormatSize event is used to set the size of the text to be displayed in a callback field.