Keyword

# Event

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

## Description

An <span class="title-ref">Event</span> is a special type of method that is typically called when an action occurs.

## Notes

You do not directly use this keyword in your Xojo code. You add events and <span class="title-ref">Event</span> handlers to classes using the Add button on the Command Bar.

## Compatibility

|                       |     |
|-----------------------|-----|
| **Project Types**     | All |
| **Operating Systems** | All |

<div class="seealso">

`Sub</api/language/sub>`, `Function</api/language/function>` keywords

</div>
