Edit

Share via


Statement does not declare an 'AddHandler', 'RemoveHandler' or 'RaiseEvent' method

The statement does not supply an AddHandler, RemoveHandler, or RaiseEvent declaration statement around a Custom Event procedure. A custom event declaration is a block of code enclosed within the Custom Event and End Event statements. Inside this block, each Custom Event procedure appears as an internal block enclosed within a declaration statement and an End statement.

Error ID: BC31113

To correct this error

  • Supply an AddHandler, RemoveHandler, or RaiseEvent declaration statement.

See also