# hWnd Property

> Returns the window handle of the TXTextControl for Windows API calls that require the hWnd of the active window as an argument. Read only and run time only.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > hWnd Property
- **89 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hwnd-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hwnd-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hwnd-property/llms-full.txt

---

Returns a handle to a Text Control.

### Syntax

```vbscript
TXTextControl.hWnd
```

### Data Types

Handle.

### Limitations

Read only, run time only.

### Remarks

The hWnd property is used with Windows API calls. Many Windows operating environment functions require the hWnd of the active window as an argument.

### See Also

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

---

## Nearby

- **Previous:** [HScroll Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/hscroll-event/llms-full.txt)
- **Next:** [ImageDisplayMode Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/imagedisplaymode-property/llms-full.txt)
