# TextControl.TextBackColorDialog Method

> Invokes the built-in dialog box for setting the background color of the text.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 22.0
- **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.TextBackColorDialog Method
- **324 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textbackcolordialog-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textbackcolordialog-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textbackcolordialog-method/llms-full.txt

---

### Description

Invokes the built-in dialog box for setting the background color of the text.

### Syntax

```csharp
public System.Windows.Forms.DialogResult TextBackColorDialog();
```

```vbnet
Public Function TextBackColorDialog() As System.Windows.Forms.DialogResult
```

### Return Value

If the dialog has been left with the Cancel button the return value is DialogResult.Cancel. Otherwise, it is DialogResult.OK.

### Examples

The following example opens the text back color dialog for the text control.

```csharp
var result = textControl.TextBackColorDialog();
Console.WriteLine($"Text Back Color Dialog result: {result}");
```

```vbnet
Dim result = textControl.TextBackColorDialog()
Console.WriteLine($"Text Back Color Dialog result: {result}")
```

---

## Nearby

- **Previous:** [TextControl.TextBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textbackcolor-property/llms-full.txt)
- **Next:** [TextControl.TextChars Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/textchars-property/llms-full.txt)
