'Custom' modifier can only be used immediately before an 'Event' declaration

The Custom keyword must precede only the Event keyword in a custom event declaration.

Error ID: BC31140

To correct this error

  • Move the Custom keyword to precede the Event keyword.

    —or—

  • Remove the Custom keyword.

See Also

Reference

Custom

Event Statement

Other Resources

Events in Visual Basic