This topic has not yet been rated - Rate this topic

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.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
[BindableAttribute(true)]
public bool Checked { get; set; }

Property Value

Type: System.Boolean
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.

This property 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 DateTimePicker control displays the properly formatted Value property value; otherwise, the control displays the last valid date/time value assigned to the Value property or the current date and time (DateTime.Now) if no value has ever been assigned.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ