Table of Contents

ExDateTimePicker

ExDateTimePicker is a date and time picker drawn completely by the library, without the Win32 DateTimePicker. Its public API mirrors DateTimePicker, so the two controls are interchangeable, and its drop-down is an ExCalendar.

Same API as DateTimePicker

Value, MinDate, MaxDate, Format, CustomFormat, ShowUpDown, ShowCheckBox, Checked, DropDownAlign, Text and the events ValueChanged, CheckedChanged, FormatChanged, DropDown and CloseUp work as in DateTimePicker. MinimumDateTime and MaximumDateTime are the limits of the control. ShowDropDown() and CloseDropDown() open and close the calendar from code.

Calendar is the ExCalendar of the drop-down: set its ShowWeekNumbers, TodayText or colors there.

Colors

Property Description
BorderColor Border of the control.
HighlightColor Border and pressed button under the mouse or with focus.
ButtonBackColor, ArrowColor Drop-down or spin button.
SelectedFieldBackColor, SelectedFieldForeColor Selected field (day, month…) being edited.
DisabledBackColor, DisabledForeColor A disabled control, or an unchecked one with ShowCheckBox.

Theme

Theme color Used for
BoxBackColor, BoxForeColor Background, text, button and arrow.
BorderColor Border, text of a disabled or unchecked control.
HighlightBackColor, HighlightForeColor Border with focus, selected field.

The theme is applied to the drop-down calendar too.

API