# DialogViewGenerator.ActivationState Property

> Gets or sets a value indicating the dialog box's activation state. It can be activated, deactivated or disabled.

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

---

### Description

Gets or sets a value indicating the dialog box's activation state. It can be activated, deactivated or disabled.

### Syntax

```csharp
public ActivationState ActivationState { get; set; }
```

```vbnet
Public Property ActivationState As ActivationState
```

### Members

| Value | Description |
|---|---|
| Activated | The dialog box is activated, which means that it has the keyboard input focus. |
| Deactivated | The dialog box is deactivated, which means that it does not have the keyboard input focus. |
| Disabled | The dialog box is disabled, which means that it cannot get the keyboard input focus. |

### Examples

The following example uses `DialogViewGenerator.ActivationState` to configure activation state as part of the dialog view generator workflow. The configured value is checked before the workflow continues.

```csharp
dialogViewGenerator.ActivationState = TXTextControl.ServerVisualisation.ActivationState.Activated;
Console.WriteLine($"Activation State used by Dialog View Generator: {dialogViewGenerator.ActivationState}");
```

```vbnet
dialogViewGenerator.ActivationState = TXTextControl.ServerVisualisation.ActivationState.Activated
Console.WriteLine($"Activation State used by Dialog View Generator: {dialogViewGenerator.ActivationState}")
```

---

## Nearby

- **Previous:** [DialogViewGenerator Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/llms-full.txt)
- **Next:** [DialogViewGenerator.Caption Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/dialogviewgenerator/caption-property/llms-full.txt)
