Class DateTimePicker
Represents control that displays a selected date and allows to change it.
[DefaultBindingProperty("Value")]
[ControlCategory("Common")]
public class DateTimePicker : CustomDateEdit, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo
- Inheritance
-
DateTimePicker
- Implements
Remarks
Examples of how a DateTimePicker can look on different platforms:
Constructors
- DateTimePicker()
Initializes a new instance of the DateTimePicker class.
Properties
- ControlKind
Returns control identifier.
- Handler
Gets control handler.
- PopupKind
Gets or sets whether to show calendar popup or edit date with spin control.
- Value
Gets or sets the value assigned to the DateTimePicker as a selected DateTime.
Methods
- CreateHandler()
Creates a handler for the control.
- OnValueChanged(EventArgs)
Called when the value of the Value property changes.
- RaiseValueChanged(EventArgs)
Raises the ValueChanged event and calls OnValueChanged(EventArgs).
- SetRange(DateTime, DateTime)
Sets possible date range in the native control.
Events
- ValueChanged
Occurs when the Value property has been changed in some way.