# FormField.FormFieldDialog Method

> Opens a dialog box to alter the formatting attributes of the form field.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 31.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 > FormField.FormFieldDialog Method
- **467 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfield/formfielddialog-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfield/formfielddialog-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfield/formfielddialog-method/llms-full.txt

---

### Description

Opens a dialog box to alter the formatting attributes of the form field.

### Syntax

```csharp
public Selection.DialogResult FormFieldDialog();
```

```vbnet
Public Function FormFieldDialog() As Selection.DialogResult
```

### Examples

The following example retrieves the form field at the current input position and inspects it by using `FormField.FormFieldDialog`.

```csharp
CheckFormField field = new(false) { Name = "AcceptTerms" };
textControl.FormFields.Add(field);
FormField formField = textControl.FormFields.GetItem();

var result = formField.FormFieldDialog();
Console.WriteLine($"Form Field Dialog result: {result}");
```

```vbnet
Dim field As New CheckFormField(False) With { .Name = "AcceptTerms" }
textControl.FormFields.Add(field)
Dim formField As FormField = textControl.FormFields.GetItem()

Dim result = formField.FormFieldDialog()
Console.WriteLine($"Form Field Dialog result: {result}")
```

---

## Nearby

- **Previous:** [FormField.Enabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfield/enabled-property/llms-full.txt)
- **Next:** [FormFieldCollection Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/llms-full.txt)
