TX Text Control .NET for Windows Forms

IsDateControlVisible Property

Property|Introduced in 28.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a value indicating wheather a date control is shown below the DateFormField so that the user can select a date.

Syntax

public bool IsDateControlVisible { get; set; }

Examples

The following example adds a prefilled delivery-date field to a form by using DateFormField.IsDateControlVisible.

DateFormField dateFormField = new(DateTime.Today.AddDays(14), 0) { Name = "DeliveryDate" };
textControl.FormFields.Add(dateFormField);

dateFormField.IsDateControlVisible = true;
if (dateFormField.IsDateControlVisible)
{
    Console.WriteLine("Date Form Field: Is Date Control Visible is enabled.");
}