IsDateControlVisible Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property IsDateControlVisible As BooleanExamples
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.");
}Dim dateFormField As New DateFormField(Date.Today.AddDays(14), 0) With { .Name = "DeliveryDate" }
textControl.FormFields.Add(dateFormField)
dateFormField.IsDateControlVisible = True
If dateFormField.IsDateControlVisible Then
Console.WriteLine("Date Form Field: Is Date Control Visible is enabled.")
End If