System.Windows.Forms.DateTimePicker.ShowUpDown Property

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.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool ShowUpDown { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the DateTimePicker.ShowUpDown property is set to true, a spin button control (also known as an up-down control), rather than a drop-down calendar, is used to adjust time values. The date and time can be adjusted by selecting each element individually and using the up and down buttons to change the value.

To display only time in a System.Windows.Forms.DateTimePicker, set the DateTimePicker.Format property to DateTimePickerFormat.Time, and the DateTimePicker.ShowUpDown property to true.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0