# ObjectClicked Event

> Occurs when an object in TXTextControl has been clicked on, passing its identifier in ObjectId; the ObjectCurrent property is updated with this identifier.

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

---

Occurs when an object has been clicked on.

### Syntax

```vbscript
ObjectClicked(ObjectId)
```

### Parameters

| Parameter | Description |
|---|---|
| ObjectId | Is the identifier of the object that has been clicked. |

### Data Types

| Name | Data type |
|---|---|
| ObjectId | 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 ObjectId parameter.

### See Also

- [ObjectDblClicked Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectdblclicked-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:** [ObjectChangeZOrder Method](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectchangezorder-method/llms-full.txt)
- **Next:** [ObjectCreated Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/objectcreated-event/llms-full.txt)
