This documentation is archived and is not being maintained.

DateTimePicker.Checked Property

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.

[Visual Basic]
Public Property Checked As Boolean
[C#]
public bool Checked {get; set;}
[C++]
public: __property bool get_Checked();
public: __property void set_Checked(bool);
[JScript]
public function get Checked() : Boolean;
public function set Checked(Boolean);

Property Value

true if the Value property has been set with a valid DateTime value and the displayed value is able to be updated; otherwise, false. The default is true.

Remarks

This parameter is used to obtain the state of the check box that is displayed if the ShowCheckBox property value is true. If the Checked property value is true, the date/time picker control displays the properly formatted Value property value; otherwise, the control displays either the current date and time (DateTime.Now) or the last valid date/time value assigned to the Value property.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

DateTimePicker Class | DateTimePicker Members | System.Windows.Forms Namespace | Value | ShowCheckBox

Show: