# ContextMenuOpening Event

> Occurs before a built-in context menu opens, with DocumentLocation flags for selection, margins, frames, tables or fields and Cancel to show your own menu.

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

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/contextmenuopening-event/#syntax)
- [Parameters](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/contextmenuopening-event/#parameters)
- [Data Types](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/contextmenuopening-event/#data-types)
- [See Also](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/contextmenuopening-event/#see-also)

---

## Nearby

- **Previous:** [ConnectTools Event](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/connecttools-event/llms.txt)
- **Next:** [ControlChars Property](https://docs.textcontrol.com/tx-text-control-activex/reference/txtextcontrol/controlchars-property/llms.txt)
