Gambas Documentation - /def/eventhandler

# event handler

An Event handler is a public Method of a Class that is called each time an Event is raised by an Object having an observer of the same Class.

The name of the event handler is the "event name" of the Object, followed by an underscore, and the name of the event.

The event name of an object is usually the name you define in the development environment, but can be anything you want. This name is attributed at object creation by the NEW instruction.

### See also

- Events declaration

- Event Management