# LocaleDialog Method

> Opens the built-in language dialog box of TXTextControl for the selected text and returns True when the user has changed the language, False on Cancel.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > LocaleDialog Method
- **173 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/localedialog-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/localedialog-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/localedialog-method/llms-full.txt

---

Invokes the Text Control's built-in language dialog box and, after the user has closed the dialog box, specifies whether he has changed something.

Introduced: 20.0.

### Syntax

```vbscript
TXTextControl.LocaleDialog
```

### Return Value

The method returns True when the user has changed the language. The method returns False, if the dialog box is left with Cancel or the language remains unchanged.

### Data Types

| Name | Data type |
|---|---|
| Return value | Boolean |

### Remarks

The changes, made in the dialog box, apply to the currently selected text.

### See Also

- [Programming Category: Control Settings](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/control-settings/llms-full.txt)
- [Programming Category: Built-in Dialog Boxes](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/dialog-boxes/llms-full.txt)

---

## Nearby

- **Previous:** [Locale Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/locale-property/llms-full.txt)
- **Next:** [LockWindowUpdate Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/lockwindowupdate-property/llms-full.txt)
