DateTimePicker
Previous  Next

Methods

Focus : Brings the focus to the control.

New1(form AS Form, left As Int, Top As Int, width As Int) : Creates a new DateTimePicker of width at the top and left location on a form. Form is a string or a native Form or a  ControlRef for a FormEx. The height of a DateTimePicker is automatically adjusted for the font size.


Properties

BackColor : Color [I/O] : Sets or gets the background color of the control - same as Color.

CustomFormat : String [I/O] : Gets or sets the text specifying the custom format for the control. See the next topic for details.

ControlRef : Control [I] : Gets a reference to the underlying control.

Enabled : Boolean [I/O] : Enables or disables the control.

FontSize: Double [I/O] : Gets or sets the size of the font of the control.

Format : Int  [I/O] : Gets or sets the format of the control : 1 Long : 2 : Short : 4 Time : 8 Custom .

ForeColor  : Color [I/O] : Sets or gets the foreground color of the control.

Height : Int  [I/O] : Gets or sets the height of the control.

Left : Int [I/O] : Gets or sets the horizontal location of the control on the screen.

ShowUpDown : Boolean [I/O] : Gets or sets the style of the control. If false then a drop-down calendar is displayed. If true then up/down buttons are displayed with an editable textbox.

Top : Int [I/O] : Gets or set the vertical location of the control on the screen.

Value: Double [I/O] : Gets or sets the date/time value of the control in ticks.

Visible : Boolean [I/O] : Gets or sets whether the control is visible.

Width : Int  [I/O] : Gets or sets the width of the control.


Events

Close-: The drop-down calendar has closed.

GotFocus-: The control has been given the focus.

LostFocus-: The control has lost the focus.

ValueChanged-: The value of the control has been changed.