System.Windows.Forms.DateTimePicker Members

The members of System.Windows.Forms.DateTimePicker are listed below.

See Also: Inherited members from System.Windows.Forms.Control

Public Constructors

Initializes a new instance of the System.Windows.Forms.DateTimePicker class.

Public Fields

static readonly
MaxDateTimeDateTime (12/31/9998 12:00:00 AM).

Specifies the maximum date value of the System.Windows.Forms.DateTimePicker control. This field is read-only.

static readonly
MinDateTimeDateTime (1/1/1753 12:00:00 AM).

Gets the minimum date value of the System.Windows.Forms.DateTimePicker control.

Protected Fields

static readonly
DefaultMonthBackColorSystem.Drawing.Color.

Specifies the default month background color of the System.Windows.Forms.DateTimePicker control. This field is read-only.

static readonly
DefaultTitleBackColorSystem.Drawing.Color.

Specifies the default title back color of the System.Windows.Forms.DateTimePicker control. This field is read-only.

static readonly
DefaultTitleForeColorSystem.Drawing.Color.

Specifies the default title foreground color of the System.Windows.Forms.DateTimePicker control. This field is read-only.

static readonly
DefaultTrailingForeColorSystem.Drawing.Color.

Specifies the default trailing foreground color of the System.Windows.Forms.DateTimePicker control. This field is read-only.

Public Properties

override
BackColorSystem.Drawing.Color.

Gets or sets a value indicating the background color of the System.Windows.Forms.DateTimePicker control.

override
BackgroundImageSystem.Drawing.Image.

Gets or sets the background image for the control.

override
BackgroundImageLayoutImageLayout.

Gets or sets the layout of the background image of the System.Windows.Forms.DateTimePicker control.

CalendarFontSystem.Drawing.Font.

Gets or sets the font style applied to the calendar.

CalendarForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the calendar.

CalendarMonthBackgroundSystem.Drawing.Color.

Gets or sets the background color of the calendar month.

CalendarTitleBackColorSystem.Drawing.Color.

Gets or sets the background color of the calendar title.

CalendarTitleForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the calendar title.

CalendarTrailingForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the calendar trailing dates.

Checkedbool.

Gets or sets a value indicating whether the DateTimePicker.Value property has been set with a valid date/time value and the displayed value is able to be updated.

CustomFormatstring.

Gets or sets the custom date/time format string.

DropDownAlignLeftRightAlignment.

Gets or sets the alignment of the drop-down calendar on the System.Windows.Forms.DateTimePicker control.

override
ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the System.Windows.Forms.DateTimePicker control.

FormatDateTimePickerFormat.

Gets or sets the format of the date and time displayed in the control.

MaxDateDateTime.

Gets or sets the maximum date and time that can be selected in the control.

[read-only]
static
MaximumDateTimeDateTime.

Gets the maximum date value allowed for the System.Windows.Forms.DateTimePicker control.

MinDateDateTime.

Gets or sets the minimum date and time that can be selected in the control.

[read-only]
static
MinimumDateTimeDateTime.

Gets the minimum date value allowed for the System.Windows.Forms.DateTimePicker control.

PaddingPadding.

Gets or sets the spacing between the contents of the System.Windows.Forms.DateTimePicker control and its edges.

[read-only]
PreferredHeightint.

Gets the preferred height of the System.Windows.Forms.DateTimePicker control.

RightToLeftLayoutbool.

Gets or sets whether the contents of the System.Windows.Forms.DateTimePicker are laid out from right to left.

ShowCheckBoxbool.

Gets or sets a value indicating whether a check box is displayed to the left of the selected date.

ShowUpDownbool.

Gets or sets a value indicating whether a spin button control (also known as an up-down control) is used to adjust the date/time value.

override
Textstring.

Gets or sets the text associated with this control.

ValueDateTime.

Gets or sets the date/time value assigned to the control.

Protected Properties

[read-only]
override
CreateParamsCreateParams.

Returns the System.Windows.Forms.CreateParams used to create this window.

[read-only]
override
DefaultSizeSystem.Drawing.Size. Documentation for this section has not yet been entered.
override
DoubleBufferedbool.

Gets or sets a value indicating whether the control should redraw its surface using a secondary buffer. Setting this property has no effect on the System.Windows.Forms.DateTimePicker control.

Public Methods

override
ToString() : string

Returns a string that represents the current System.Windows.Forms.DateTimePicker control.

Protected Methods

override
CreateAccessibilityInstance() : AccessibleObject

Creates a new accessibility object for the System.Windows.Forms.DateTimePicker control.

override
CreateHandle()

Creates the physical window handle.

override
DestroyHandle()

Destroys the physical window handle.

override
Dispose(bool)
Documentation for this section has not yet been entered.
override
IsInputKey(Keys) : bool

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

OnCloseUp(EventArgs)

Raises the DateTimePicker.CloseUp event.

OnDropDown(EventArgs)

Raises the DateTimePicker.DropDown event.

override
OnFontChanged(EventArgs)

Raises the Control.FontChanged event.

OnFormatChanged(EventArgs)

Raises the DateTimePicker.FormatChanged event.

override
OnHandleCreated(EventArgs)

Raises the Control.HandleCreated event.

override
OnHandleDestroyed(EventArgs)

Raises the Control.HandleDestroyed event.

OnRightToLeftLayoutChanged(EventArgs)

Raises the DateTimePicker.RightToLeftLayout event.

override
OnSystemColorsChanged(EventArgs)

Overrides the Control.OnSystemColorsChanged(EventArgs) method.

OnValueChanged(EventArgs)

Raises the DateTimePicker.ValueChanged event.

override
SetBoundsCore(int, int, int, int, BoundsSpecified)
Documentation for this section has not yet been entered.
override
WndProc(ref Message)
Documentation for this section has not yet been entered.

Public Events

BackColorChanged

Occurs when the value of the DateTimePicker.BackColor property changes.

BackgroundImageChanged

Occurs when the value of the DateTimePicker.BackgroundImage property changes.

BackgroundImageLayoutChanged

Occurs when the value of the DateTimePicker.BackgroundImageLayout property changes.

Click

Occurs when the control is clicked.

CloseUp

Occurs when the drop-down calendar is dismissed and disappears.

DoubleClick

Occurs when the control is double-clicked.

DropDown

Occurs when the drop-down calendar is shown.

ForeColorChanged

Occurs when the value of the DateTimePicker.ForeColor property changes.

FormatChanged

Occurs when the DateTimePicker.Format property value has changed.

MouseClick

Occurs when the control is clicked with the mouse.

MouseDoubleClick

Occurs when the control is double-clicked with the mouse.

PaddingChanged

Occurs when the value of the DateTimePicker.Padding property changes.

Paint

Occurs when the control is redrawn.

RightToLeftLayoutChanged

Occurs when the DateTimePicker.RightToLeftLayout property changes.

TextChanged

Occurs when the value of the DateTimePicker.Text property changes.

ValueChanged

Occurs when the DateTimePicker.Value property changes.