Microsoft SDK for Java

DateTimePicker.addOnFormat

Assigns a delegate to the format event.

Syntax

public final void addOnFormat( DateTimeFormatEventHandler value )

Parameters

value

The DateTimeFormatEventHandler delegate to be notified when the event occurs.

Remarks

Passing an event handler as a parameter to this method is equivalent to setting the format event to that method in the Properties window. The format event occurs when the DateTimePicker control needs to convert the time value to a string format.

See Also   removeOnFormat

© 1999 Microsoft Corporation. All rights reserved. Terms of use.