# FindReplace Method

> Displays the built-in Find dialog box (TypeOfDialog 1) or the Find and Replace dialog box (TypeOfDialog 2) of the TXTextControl. The method has no return value.

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

---

Displays a 'Find' or 'Replace' dialog box.

### Syntax

```vbscript
TXTextControl.FindReplace TypeOfDialog
```

### Parameters

| Parameter | Description |
|---|---|
| TypeOfDialog | If this parameter is set to 1 a 'Find' dialog box is displayed, if this parameter is set to 2, a 'Find and Replace' dialog box is displayed. |

### Return Value

This method has no return value.

### Data Types

| Name | Data type |
|---|---|
| TypeOfDialog | Integer |

### See Also

- [Programming Category: Search and Replace](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/search-replace/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:** [Find Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/find-method/llms-full.txt)
- **Next:** [FontBold Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fontbold-property/llms-full.txt)
