DateTimePicker.setAllowUserString

Overview | Methods | This Package | All Packages

DateTimePicker.setAllowUserString

Sets a boolean value indicating whether the user can edit the value in the control by pressing F2.

Syntax

public final void setAllowUserString( boolean b )

Parameters

b

Set to true if the user can edit the value in the control by pressing F2; otherwise, set to false. The default value is false. After the user edits the value in the control by pressing F2, the userString event occurs. If this property is set to true, the userString event must be handled to correctly convert the user text into a time.

See Also  getAllowUserString