Format Event (DateTimePicker Control)

       

Occurs when the control requests text to be displayed in a callback field.

Syntax

Private Sub object_Format([index As Integer], CallbackField As String, FormattedString As String)

The Format 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.
FormattedStringField A string expression specifying the formatted string that is to be displayed.

Remarks

The Format event is used to set the text to be displayed in a callback field.

See CustomFormat Property for more information on callback processing.