Occurs when the drop-down calendar is dismissed and disappears. Occurs when the value of the BackgroundImageLayout property changes. Occurs when the value of the BackgroundImage property changes. Occurs when the value of the BackColor property changes. The following are some of the commonly used events of the DateTimePicker control − Sr.No. Returns the string representing the control. The following are some of the commonly used methods of the DateTimePicker control − Sr.No. Gets or sets the date/time value assigned to the control. Gets or sets the text associated with this control. 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. Gets or sets a value indicating whether a check box is displayed to the left of the selected date. Gets or sets whether the contents of the DateTimePicker are laid out from right to left. Gets the preferred height of the DateTimePicker control. Gets the minimum date value allowed for the DateTimePicker control. Gets or sets the minimum date and time that can be selected in the control. Gets the maximum date value allowed for the DateTimePicker control. Gets or sets the maximum date and time that can be selected in the control. Gets or sets the format of the date and time displayed in the control. Gets or sets the foreground color of the DateTimePicker control. Gets or sets the alignment of the drop-down calendar on the DateTimePicker control. Gets or sets the custom date/time format string. Gets or sets a value indicating whether the Value property has been set with a valid date/time value and the displayed value is able to be updated. Gets or sets the foreground color of the calendar trailing dates. Gets or sets the foreground color of the calendar title. Gets or sets the background color of the calendar title. Gets or sets the background color of the calendar month.
Gets or sets the foreground color of the calendar. Gets or sets the font style applied to the calendar. Gets or sets the layout of the background image of the DateTimePicker control. Gets or sets the background image for the control. Gets or sets a value indicating the background color of the DateTimePicker control. The following are some of the commonly used properties of the DateTimePicker control − Sr.No. The MinDate and the MaxDate properties allow you to put limits on the date range. The new selected value appears in the text box part of the control. The user can make selection by clicking the required date. If you click the arrow in the DateTimePicker control, it displays a month calendar, like a combo box control. The DateTimePicker control allows selecting a date and time by editing the displayed values in the control.