Purpose
Enables or disables
events fired by the Logon object control.Description
Events or groups of events can be enabled or disabled using the Events property. Disabling events may lead to improved performance, especially for operations with large chunks of data. Events may also be turned on and off temporarily. The following values are available for the Events property:
Events property values
tloDisableAllLogonEvents = 0 |
Disable all events. |
||
tloEnableOnClick = 1 |
Fire event after logon button is clicked. |
||
tloEnableOnLogoff = 2 |
Fire event after associated connection is disconnected. |
||
tloEnableOnError = 4 |
Fire event after an error has occurred. |
||
tloEnableOnCancel = 8 |
Fire event after the user has clicked the Cancel button in the logon dialog. |
||
tloEnableAllLogonEvents = 32767 |
Enable all events. |
All values may be combined through and or or operations.

Rem Enable OnClick and OnLogoff event
MyControl.Events = MyControl.Events or _
EnableOnClick or EnableOnLogoff
Rem Disable OnCancel event
MyControl.Events = MyControl.Events and not _
(EnableOnCancel)