# TextControl.AcceptsTab Property

> Gets or sets a value indicating whether pressing the TAB key types a TAB character in the control instead of moving the focus to the next control in the tab order.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > TextControl.AcceptsTab Property
- **278 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/acceptstab-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/acceptstab-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/acceptstab-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether pressing the TAB key types a TAB character in the control instead of moving the focus to the next control in the tab order.

### Syntax

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

```vbnet
Public Property AcceptsTab As Boolean
```

### Examples

The following example uses `TextControl.AcceptsTab` to allow users to insert tab characters while editing. The change is then applied to the active document or user interface.

```csharp
textControl.AcceptsTab = true;
textControl.Update();
```

```vbnet
textControl.AcceptsTab = True
textControl.Update()
```

---

## Nearby

- **Previous:** [TextControl Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt)
- **Next:** [TextControl.AcceptsTabChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/acceptstabchanged-event/llms-full.txt)
