# PageNumberDialog Method

> Opens the built-in dialog box for formatting a page number field of the type txFieldPageNumber or txFieldAllPages and returns True when the user clicked OK.

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

---

This method opens a built-in dialog box to set formatting attributes for the specified page number field.

Introduced: 19.0.

### Syntax

```vbscript
TXTextControl.PageNumberDialog FieldId
```

### Parameters

| Parameter | Description |
|---|---|
| FieldId | Specifies the identifier of the marked text field for which attributes are changed. It must be a field of the type **txFieldPageNumber** or **txFieldAllPages**. The field type can be set with the [FieldType](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/fieldtype-property/llms-full.txt) property. |

### Return Value

The method returns True when the user has changed one or more attributes and the dialog box has been left with Ok. The method returns False when the dialog has been left with Cancel.

### Data Types

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

### See Also

- [Headers and Footers](https://docs.textcontrol.com/tx-text-control-activex/document-editor/headers-footers/llms-full.txt)
- [Programming Category: Headers and Footers](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/headers-footers/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:** [PageMarginT Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pagemargint-property/llms-full.txt)
- **Next:** [PageOrientation Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/pageorientation-property/llms-full.txt)
