# DateFormField.IsDateControlVisible Property

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > DateFormField.IsDateControlVisible Property
- **550 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/dateformfield/isdatecontrolvisible-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/dateformfield/isdatecontrolvisible-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/dateformfield/isdatecontrolvisible-property/llms-full.txt

---

### 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

```csharp
public bool IsDateControlVisible { get; set; }
```

```vbnet
Public Property IsDateControlVisible As Boolean
```

### Examples

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

```csharp
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.");
}
```

```vbnet
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
```

---

## Nearby

- **Previous:** [DateFormField.EmptyWidth Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/dateformfield/emptywidth-property/llms-full.txt)
- **Next:** [DateFormField.SupportedDateFormats Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/dateformfield/supporteddateformats-property/llms-full.txt)
