# TextFrameActivated Event

> Occurs when a text frame has obtained the input focus; passes the text frame identifier and updates the ObjectCurrent property with it.

- **Product:** TX Text Control ActiveX
- **Section:** Documentation
- **Kind:** Event
- **Path:** TX Text Control ActiveX > API Reference > TXTextControl > TextFrameActivated Event
- **190 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeactivated-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeactivated-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframeactivated-event/llms-full.txt

---

Occurs when a text frame has obtained the input focus.

Introduced: 12.0.

### Syntax

```vbscript
TextFrameActivated(TextFrameId)
```

### Parameters

| Parameter | Description |
|---|---|
| TextFrameId | Is the identifier of the activated text frame. |

### Data Types

| Name | Data type |
|---|---|
| TextFrameId | Integer |

### Remarks

The value of the [ObjectCurrent](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcurrent-property/llms-full.txt) property is updated with the identifier given through the TextFrameId parameter.

### See Also

- [TextFrameDeactivated Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframedeactivated-event/llms-full.txt)
- [Programming Category: Images, Text Frames, Signature Fields and OLE Objects](https://docs.textcontrol.com/tx-text-control-activex/reference/categories/images-objects/llms-full.txt)

---

## Nearby

- **Previous:** [TextDirection Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textdirection-property/llms-full.txt)
- **Next:** [TextFrameBackColor Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/textframebackcolor-property/llms-full.txt)
