API Documentation > CorelDRAW > 2025-v26 > Application > IVGApplication
Application.EventsEnabled property
Gets or sets if the Events are enabled
Syntax:
Property Get EventsEnabled() As Boolean
Property Let EventsEnabled(ByVal Value As Boolean)
Remarks:
The EventsEnabled property returns or specifies a value indicating the enabled status of an event in CorelDRAW. An event is enabled if it is ready and able to execute in the application. If an event is enabled, its EventsEnabled status is True. If the event is disabled, the status is set to False. Events can be disabled to temporarily improve performance when performing routine operations
Examples:
The following VBA example disables events before creating a second ellipse.
Sub EnabledEvents()
Dim state As Boolean
ActiveLayer.CreateEllipse2 0, 0, 5
'GlobalDocument_ShapeCreated event will be generated here.
state = EventsEnabled 'Remember the flag state.
EventsEnabled = False 'Disable events.
ActiveLayer.CreateEllipse2 3, 3, 5
' This event wil not be generated.
EventsEnabled = state 'Restore event state. 
End Sub